We may encounter such kind of a question very rarely during interview room.
But one should remember how to swap case of a string
Means : Upper case will become lower case and Lower case will become Upper case.
Code:
strname='python Is SimpLe'
print(strname.swapcase())
0 Comments