Illegal literal or not?

Gerrit Holl gerrit at nl.linux.org
Sat Jan 25 15:13:21 EST 2003


Peter Hansen schreef op zaterdag 25 januari om 20:32:03 +0000:
> Mel Wilson wrote:
> > >>> print "'" + '"' + "Let's try this!" + '"' + ', they said.' + "'"
> > >>> print ''.join (["'", '"', "Let's try this!", '"', ', they said.', "'"])

> >>> print '"'.join(["'", "Let's try this!", ", they said.'"])
> '"Let's try this!", they said.'

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

:)

yours,
Gerrit.

-- 
Asperger Syndroom - een persoonlijke benadering:
	http://people.nl.linux.org/~gerrit/
Het zijn tijden om je zelf met politiek te bemoeien:
	http://www.sp.nl/





More information about the Python-list mailing list