Skip to content

Instantly share code, notes, and snippets.

@nathanmac
Last active August 29, 2015 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nathanmac/0f58b74a4fad7c088072 to your computer and use it in GitHub Desktop.
Save nathanmac/0f58b74a4fad7c088072 to your computer and use it in GitHub Desktop.
ProgressBar Display
def updateProgress(position, total = 100, length = 10):
progress = int((position/float(total))*100)
print '\r[{0}] {1}%'.format('#'*(progress/length), progress)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment