sWAP cASE

  • + 36 comments

    Not the simplest but it works:

    print ''.join([i.lower() if i.isupper() else i.upper() for i in raw_input()])