[NooB] a Variable in multiple quotes...

administrata administrata at hotmail.com
Mon Feb 14 16:54:54 EST 2005


Leif K-Brooks <eurleif at ecritters.biz> wrote in message news:<378onnF5aoj75U1 at individual.net>...
> 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

How can I do it with several variables?

About 10 or more...

HELP plz :)



More information about the Python-list mailing list