Skip to content

Instantly share code, notes, and snippets.

@ibrahimroshdy
Created July 26, 2022 19:54
Show Gist options
  • Save ibrahimroshdy/744e0b9a58470dd24254cf5b38768967 to your computer and use it in GitHub Desktop.
Save ibrahimroshdy/744e0b9a58470dd24254cf5b38768967 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
def __ignored_func():
print("This is an ignored function and this message will not be printed")
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