Illegal literal or not?

Frodo Morris graham.lee at invalid.wadham.ox.ac.uk
Fri Jan 24 14:01:42 EST 2003


LJ & MT Lareau wrote:
> Is it possible to have Python produce the following literal output in the
> interactive mode.
> '"Let's try this!", they said.'
> If so what is the Python statement. I've tried several ways
> and can't seem to produce it.  Thanks for the help.
> 
> 
> 

 >>> print "'\"Let's try this!\", they said.'"
-- 
FM





More information about the Python-list mailing list