swap case in pthon code example Example: swapcase str_swapcase = "what was that about?".swapcase() print(str_swapcase)