You are viewing a single comment's thread. Return to all comments →
chars = [] def swap_case(s): for c in s: if c.isupper(): chars.append(c.lower()) else: chars.append(c.upper()) return ''.join(chars) # convert array to string using join()
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 →