write a python program to swap cases of a given string code example
Example 1: code to swap in python
a=5
b=10
a,b=b,a #swapped
Example 2: swapcase
str_swapcase = "what was that about?".swapcase()
print(str_swapcase)
a=5
b=10
a,b=b,a #swapped
str_swapcase = "what was that about?".swapcase()
print(str_swapcase)