If we assume that the following code is a huge and complicated code and lasts for minutes or hours and we want to inform the user how many percents of the code are passing, what should I do?
num=1
for i in range(1,100000):
num=num*i
print(num)
I want to inform users with progression bar, similar to installing something. I checked here but I did not understand how to write a progression bar depending on my code progression.
In the examples similar to the mentioned link, they are defining the sleep or delaying time. this is not acceptable. Because we do not know the calculation time of Python in different code with different functions.