sWAP cASE

  • + 0 comments

    def swap_case(s): r="" for i in s: if(i==i.lower()): r+=i.upper() elif(i==i.upper()): r+=i.lower() else: r+=i result r