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