sWAP cASE

  • + 0 comments

    My code ran for following code. But can we go like this directly?

      def swap_case(s):
           return s.swapcase()