Answers for "swapcase in python 3"

2

swapcase

str_swapcase = "what was that about?".swapcase()
print(str_swapcase)
Posted by: Guest on June-27-2020
0

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
Posted by: Guest on November-09-2020

Python Answers by Framework

Browse Popular Code Answers by Language