You are viewing a single comment's thread. Return to all comments →
we can use the simple swapcase function to do it
def swap_case(s):
return s.swapcase()
if name == 'main': s = input() result = swap_case(s) print(result)
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 →
we can use the simple swapcase function to do it
def swap_case(s):
if name == 'main': s = input() result = swap_case(s) print(result)