You are viewing a single comment's thread. Return to all comments →
instead of for loop you can also use map and str.swapcase: print("".join(map(str.swapcase, input())))
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 →
instead of for loop you can also use map and str.swapcase: print("".join(map(str.swapcase, input())))