Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # zero_padding.py
- print str(7).zfill(3)
- # a more convenient way...
- print "%02d and %03d" % (7,4)
- print "%03d" % (25)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement