Skip to content

Instantly share code, notes, and snippets.

@ibrahimroshdy
Created July 26, 2022 19:57
Show Gist options
  • Save ibrahimroshdy/c3a2716cf677bec35582a2ad60b53b08 to your computer and use it in GitHub Desktop.
Save ibrahimroshdy/c3a2716cf677bec35582a2ad60b53b08 to your computer and use it in GitHub Desktop.
"""
A simple looping function with one python package requirement
"""
from tqdm import tqdm
def simple_loop_func(number):
"""
Using tqdm progress bar this function prints out the progress of the for loop
:param number: int digit to be the end of the for loop
"""
for _ in tqdm(range(number)):
pass
if __name__ == '__main__':
print("This is a progress bar of the simple loop script")
simple_loop_func(1000000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment