Run
# Take a string x = "Hello World" # Swap the case of characters in string x_result = x.swapcase() # Print case swapped string print(x_result)
Output