Calmcode - tqdm: descriptions

Descriptions

1 2 3 4 5

You can add a simple description to your loop. The code below demonstrates this.

import time
import tqdm

for i in tqdm.tqdm(range(100), desc=" first loop"):
    time.sleep(0.02)

for i in tqdm.tqdm(range(100), desc=" second loop"):
    time.sleep(0.02)

print("done!")