how to swap cases in python algorithm code example Example: swapcase str_swapcase = "what was that about?".swapcase() print(str_swapcase)