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