Last active
August 29, 2015 14:12
-
-
Save nathanmac/0f58b74a4fad7c088072 to your computer and use it in GitHub Desktop.
ProgressBar Display
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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