Skip to content

Instantly share code, notes, and snippets.

@1trackprojects1
Created November 7, 2018 17:12
Show Gist options
  • Save 1trackprojects1/d183c5c5b2cbdd235c2a152c7e785ae8 to your computer and use it in GitHub Desktop.
Save 1trackprojects1/d183c5c5b2cbdd235c2a152c7e785ae8 to your computer and use it in GitHub Desktop.
import sys
import time
def load(t):
animation = "*+-+-*" # New Loading Vars : "!#$%^&*"
for i in range(t):
time.sleep(0.05)
sys.stdout.write("\rLoading: " + animation[i % len(animation)])
sys.stdout.flush()
@1trackprojects1
Copy link
Author

A simple loading bar for the python programming language.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment