Creating a progress bar is really useful if you have a long-running task and you'd like to know how far…