opposite case in python

33

# Python program to demonstrate the use of
# swapcase() method  
  
string = "gEEksFORgeeks"
  
# prints after swappong all cases
print(string.swapcase())   
  
string = "striver" 
print(string.swapcase())
# Python program to demonstrate the use of
# swapcase() method  
  
string = "gEEksFORgeeks"
  
# prints after swappong all cases
print(string.swapcase())   
  
string = "striver" 
print(string.swapcase())

Comments

Submit
0 Comments