This is an easy trick to add an indicator to a for loop in python. Instead of just printing an index for each iteration, we can also clear the output.
from IPython.display import clear_output for i in range(10): clear_output(wait=True) #your code print(i)
and the output will be like this: