You are viewing a single comment's thread. Return to all comments →
def swap_case(s): result = "" for i in s: if i.islower(): result += i.upper() elif i.isupper(): result += i.lower() else: result += i return result
Seems like cookies are disabled on this browser, please enable them to open this website
sWAP cASE
You are viewing a single comment's thread. Return to all comments →
def swap_case(s): result = "" for i in s: if i.islower(): result += i.upper() elif i.isupper(): result += i.lower() else: result += i return result