How to create a progress bar on the console?ΒΆ

The tqdm library has just one purpose: Drawing progress bars.

Install it with:

pip install tqdm

Here is an example code piece:

import time
from tqdm import tqdm

for i in tqdm(range(100)):
    time.sleep(0.1)