You are viewing a single comment's thread. Return to all comments →
def swap_case(s): new_case = [i.lower() if i.isupper() else i.upper() for i in [*s]] return ''.join(new_case)
sWAP cASE
You are viewing a single comment's thread. Return to all comments →