Skip to content

Instantly share code, notes, and snippets.

@fredrikaverpil
Last active March 23, 2017 01:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fredrikaverpil/9760805 to your computer and use it in GitHub Desktop.
Save fredrikaverpil/9760805 to your computer and use it in GitHub Desktop.
Add padding to number #python
# Make 13 into 0013
'{:04}'.format(13)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment