June 2021
Beginner
432 pages
9h 9m
English
A progress bar is a visual element that shows how much of a task has been completed. Progress bars are often used alongside downloading files or software installations. This project creates a getProgressBar() function that returns a progress bar string based on the arguments passed to it. It simulates a downloading file, but you can reuse the progress bar code in your own projects.
When you run progressbar.py, the output will look like this:
Progress Bar Simulation, by Al Sweigart
[█████████ ] 24.6% 1007/4098
The progress bar relies on a certain trick that programs running in terminal windows ...
Read now
Unlock full access