You are viewing a single comment's thread. Return to all comments →
def swap_case(s):
str = "" for k in s: if (k.isupper()): str = str + k.lower() elif (k.islower()): str = str + k.upper() else: str = str + k return str
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):