Stayvoid wrote:
Hey folks!
What's the difference between these commands?
print "%02d" % (12)
print "%d" % (12)
I know that "d" stands for decimal. What does "02" mean?
"0" means to use leading zeroes; "2" means to use 2 digits. Here's a better
example:
py> "%05d" % 12
'00012'
More inf
Hey folks!
What's the difference between these commands?
print "%02d" % (12)
print "%d" % (12)
I know that "d" stands for decimal. What does "02" mean?
Cheers!
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
ht