def toggle_string(string): string1 = string.swapcase() return string1