Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

opposite case in python

# Python program to demonstrate the use of
# swapcase() method  
  
string = "gEEksFORgeeks"
  
# prints after swappong all cases
print(string.swapcase())   
  
string = "striver" 
print(string.swapcase())
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #case #python
ADD COMMENT
Topic
Name
5+8 =