You are viewing a single comment's thread. Return to all comments →
new_str = "" for char in s: if not char.isalpha(): new_str += char elif char.isupper(): new_str += char.lower() elif char.islower(): new_str += char.upper() return new_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 →