[Tutor] NewBie Question... Variables

Liam Clarke cyresse at gmail.com
Tue Feb 15 11:28:20 CET 2005


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, 이 진성 <administrata at hotmail.com> 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 at 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.


More information about the Tutor mailing list