Skip to content

Instantly share code, notes, and snippets.

@mazhar266
Created February 20, 2020 16:20
Show Gist options
  • Save mazhar266/04b29e300cddedb8763bb2c8e0a7acb4 to your computer and use it in GitHub Desktop.
Save mazhar266/04b29e300cddedb8763bb2c8e0a7acb4 to your computer and use it in GitHub Desktop.
Animation in shell
import time
import sys
animation = "πŸŒ•πŸŒ–πŸŒ—πŸŒ˜πŸŒ‘πŸŒ’πŸŒ“πŸŒ”"
for i in range(100):
time.sleep(0.1)
sys.stdout.write("\r" + animation[i % len(animation)])
sys.stdout.flush()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment