sWAP cASE

  • + 9 comments

    instead of for loop you can also use map and str.swapcase: print("".join(map(str.swapcase, input())))