[Tutor] output formatting question
tom arnall
kloro2006 at gmail.com
Thu Aug 6 06:08:16 CEST 2015
i have read -- with what i think is a reasonable amount of attention
-- all of the doc' i can find about string formatting in python. for
the life of me, i cannot see how any of the other methods do more than
you can do with, to use a concrete example:
print "Here %s a number: %3d" % ("is", 1)
#OR:
s = "Here %s a number: %3d" % ("is", 1)
print s
what am i not getting?
More information about the Tutor
mailing list