chanfging case in python code example
Example 1: python convert string to lowercase
# By Alan W. Smith and Petar Ivanov
s = "Kilometer"
print(s.lower())
Example 2: how to convert uppercase to lowercase and vice versa in python
def swap_string():
s=input()
swapped_string=""
swapped_string+=s.swapcase()
return swapped_string