Created
July 26, 2022 19:57
-
-
Save ibrahimroshdy/c3a2716cf677bec35582a2ad60b53b08 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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