You are viewing a single comment's thread. Return to all comments →
def swap_case(s): l = list(s) l2 = [] for i in range(len(s)): if l[i].isupper() == True: l2.append(l[i].lower()) elif l[i].isupper() == False: l2.append(l[i].upper()) return (''.join(l2))
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 →