It works if you use a comma, like the comment you replied to.
Python 2.6 introduces string interpolation like Ruby/Perl. (Older versions used printf-style format strings.)
print "x: {x}".format(x=1234) # New in 2.6
print "x: %d" % x # Old
http://docs.python.org/tutorial/inputoutput.html#fancier-out...