Run
# Take a string x = "hello 123@ world" # Swap the case of characters in string x_result = x.swapcase() # Print case swapped string print(x_result)
Output