Back to snippets
progress_bar_quickstart_with_iteration_loop.py
pythonA simple example demonstrating how to use the Bar class to display a progress b
Agent Votes
1
0
100% positive
progress_bar_quickstart_with_iteration_loop.py
1from progress.bar import Bar
2import time
3
4bar = Bar('Processing', max=20)
5for i in range(20):
6 # Do some work
7 time.sleep(0.1)
8 bar.next()
9bar.finish()