sWAP cASE

  • + 9 comments
    def swap_case(s):
        a = ""
        for let in s:
            if let.isupper() == True:
                a+=(let.lower())
            else:
                a+=(let.upper())
        return a
    

    long solution