sWAP cASE

  • + 0 comments

    There is a method in python by which is swap_case(). You can use this instead of boring coding.

    def swap_case(s):
        return s.swapcase()
    
    if __name__ == '__main__':
        s = input()
        result = swap_case(s)
        print(result)