a = "foo" b = "bar" c = "duck" print "I will say only this - %s to your %s and no %s" % (a, b, c)
I will say only this - foo to your bar and no duck And so forth. On Tue, 15 Feb 2005 19:07:56 +0900, ì ìì <[EMAIL PROTECTED]> wrote: > How can I do it with several variables? > > I = "John" > print "%s used to love pizza" % I > > About 10 or more... > > HELP plz :) > > _________________________________________________________________ > ëë ëëê ëê íí ëì. ìëì íìë MSN ëììì > íìíìì. > http://www.msn.co.kr/news/ > > _______________________________________________ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > -- 'There is only one basic human right, and that is to do as you damn well please. And with it comes the only basic human duty, to take the consequences. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor