Created
July 26, 2022 19:54
-
-
Save ibrahimroshdy/744e0b9a58470dd24254cf5b38768967 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 | |
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