swap cbse pythob code example Example: swapcase str_swapcase = "what was that about?".swapcase() print(str_swapcase)