Skip to content

Instantly share code, notes, and snippets.

@Ddedalus
Created January 15, 2018 21:56
Show Gist options
  • Save Ddedalus/81e88be8834a361c922ab06042c8c18a to your computer and use it in GitHub Desktop.
Save Ddedalus/81e88be8834a361c922ab06042c8c18a to your computer and use it in GitHub Desktop.
Terminal progress indicator "x out of y"
def progress_bar(current, total, what):
print('\r', current, "out of", total, what, end="", flush=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment