from time import sleep import sys from tqdm import tqdm print("zero") sleep(5) print("one") sleep(5) print("two") sleep(5) for _ in tqdm(range(100), total=100): sleep(0.01) sys.exit(0)