Illegal literal or not?

Skip Montanaro skip at pobox.com
Fri Jan 24 20:08:51 CET 2003


    LJ> Is it possible to have Python produce the following literal output in the
    LJ> interactive mode.
    LJ> '"Let's try this!", they said.'

>>> s = """'"Let's try this!", they said.'"""
>>> print s
'"Let's try this!", they said.'

Next question, please... ;-)

Skip





More information about the Python-list mailing list