So i have a function that takes a lot of time to finish i want to know how to make progress bar for the function, the code looks like this
def some_function():
    #do something
    #do something
    #do something
    print('finished')
output
[==========         ] 40%
[==============     ] 60%
[=================  ] 80%
finished
[===================] 100%
it will be good if it's update in the same place
