>>> interface = 'FastEthernet1/1'
>>> print interface
FastEthernet1/1
>>> interface.lower()
'fastethernet1/1'
>>> interface.upper()
'FASTETHERNET1/1'
You also have the ability to assign it as the value to a new or existing variable.
>>> intlow = interface.lower()
>>> intlow
'fastethernet1/1'
>>>
>>> intupp = interface.upper()
>>> intupp
'FASTETHERNET1/1'
Tulis komentar anda... Conversion Conversion Emoticon Emoticon