[Tutor] A style question

Kalle Svensson kalle@gnupung.net
Thu, 18 Apr 2002 20:38:03 +0200


[Raymond Hettinger]
> The lines can be combined and the str() conversion isn't necessary
> if you use %d instead of %s:

You can use %s as well:
>>> "%s %d" % (5,5)
'5 5'

Med utmärkt högaktning,
  Kalle
-- 
Kalle Svensson, http://www.juckapan.org/~kalle/
Student, root and saint in the Church of Emacs.