[NooB] a Variable in multiple quotes...
Leif K-Brooks
eurleif at ecritters.biz
Sun Feb 13 05:34:58 EST 2005
administrata wrote:
> Is it possible?
>
> I tried...
>
> I = "John"
> print \
> """
> I used to love pizza"""
>
>
> Error occurs!!!
No error occurs; it prints "I used to love pizza", as would be expected.
Oh: from the subject line, I'm guessing that you want it to say "John
used to love pizza" instead? In that case, try doing this:
I = "John"
print "%s used to love pizza" % I
More information about the Python-list
mailing list