REVESING CASE Python
t = "Mr.Brown"
nt = t.swapcase()
print(nt)
#print: mR.bROWN
Silver Takana
t = "Mr.Brown"
nt = t.swapcase()
print(nt)
#print: mR.bROWN
# 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())