Re: [NooB] a Variable in multiple quotes...

2005-02-14 Thread Fredrik Lundh
"administrata" wrote: >> 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... two: print I,

Re: [NooB] a Variable in multiple quotes...

2005-02-14 Thread administrata
Leif K-Brooks <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > 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

Re: [NooB] a Variable in multiple quotes...

2005-02-13 Thread Nick Coghlan
Michael Hoffman wrote: This is a fairly friendly group and they will answer even newbie questions amicably. Albeit with the occasional pointed comment about not at least skimming the tutorial when it covers the question asked ;) Cheers, Nick. -- Nick Coghlan | [EMAIL PROTECTED] | Brisban

Re: [NooB] a Variable in multiple quotes...

2005-02-13 Thread Michael Hoffman
You know, it's really not necessary for you to put "[NooB]" in the subject of your posts. This is a fairly friendly group and they will answer even newbie questions amicably. But if you want an even kinder, gentler place to ask questions as a newbie (not a noob), I suggest the Tutor mailing list: h

Re: [NooB] a Variable in multiple quotes...

2005-02-13 Thread Leif K-Brooks
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,

Re: [NooB] a Variable in multiple quotes...

2005-02-13 Thread Do Re Mi chel La Si Do
It's OK for me @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

[NooB] a Variable in multiple quotes...

2005-02-13 Thread administrata
Is it possible? I tried... I = "John" print \ """ I used to love pizza""" Error occurs!!! But, I don't know how to fix... HELP thx 4 reading. -- http://mail.python.org/mailman/listinfo/python-list