Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

swapping upper case and lower case string python

# swapcase() method 

string = "thE big BROWN FoX JuMPeD oVEr thE LAZY Dog"
print(string.swapcase()) 

>>> THe BIG brown fOx jUmpEd OveR THe lazy dOG
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #swapping #upper #case #case #string #python
ADD COMMENT
Topic
Name
7+6 =