python 3 swapcase code example Example: swapcase str_swapcase = "what was that about?".swapcase() print(str_swapcase)