Skip to content

Instantly share code, notes, and snippets.

@rubenhortas
Created March 9, 2024 17:29
Show Gist options
  • Save rubenhortas/86fa57910de4c5aee09b9c51f110afb8 to your computer and use it in GitHub Desktop.
Save rubenhortas/86fa57910de4c5aee09b9c51f110afb8 to your computer and use it in GitHub Desktop.
Implement a progress bar in python using using tqdm
#!/usr/bin/env python3
"""
Implement a progress bar using using tqdm.
"""
from tqdm import tqdm
from time import sleep
if __name__ == '__main__':
data = list(range(100))
for i in tqdm(data):
sleep(0.1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment