sWAP cASE

  • + 0 comments

    By using swapcase() this problem can be solved with one line of code.

    code>> def swap_case(s): ex = s.swapcase() return ex