sWAP cASE ⬀
You are given a string and your task is to swap cases. In other words, convert all lowercase letters to uppercase letters and vice versa.
Www.HackerRank.com → wWW.hACKERrANK.COM
Pythonist 2 → pYTHONIST 2
Complete the swap_case function in the editor below.
swap_case has the following parameters:
string s: the string to modify
string: the modified string
A single line containing a string s.
0 < len(s) ≤ 1000
HackerRank.com presents "Pythonist 2".
hACKERrANK.COM PRESENTS "pYTHONIST 2".