Problem

# Problem 5

Write a Python function to swap cases in a given string.

1
2
3
4
5
6
def swap_case(string):
    # Do script here
swap_case(string = "Python Is Cool")

Output:
pYTHON iS cOOL