Answers for "swap case function in python"

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
0

swap case python

t = "Mr.Brown"
nt = t.swapcase()
print(nt)
Posted by: Guest on July-02-2021

Python Answers by Framework

Browse Popular Code Answers by Language