Mostly Linux & Python syntax notes and hyperlinks.

Thursday, August 12, 2010

python: printing more than one integer in a string

>>> a=5
>>> b=6
>>> c=7
>>>print("a=%d,b=%d,c=%d" % (a,b,c))

a=5,b=6,c=7

No comments:

Post a Comment