Python – Create progress bar using tqdm module Improve Improve Like Article Like Save Share Report In this article we will see how to make progress bar with the help of tqdm module. A progress bar is a graphical control element used to visualize the progression of an extended computer operation, such as a download, file transfer, or installation. Sometimes, the graphic is accompanied by a textual representation of the progress in a percent format. Required Modules : Tqdm : Tqdm package is one of the more comprehensive packages for progress bars with python and is handy for those instances you want to build scripts that keep the users informed on the status of your application. pip install tqdm Time : This module provides various time-related functions, it is part of python’s standard library. Example 1: # importing modules from tqdm import trange from time import sleep # creating loop for i in trange(10, desc ="loop "): # slowing the for loop sleep(0.1) Output : https://media.geeksforgeeks.org/wp-content/uploads/20200415235822/Untitled4-Jupyter-Notebook-Google-Chrome-15-04-2020-23_56_34.mp4 Example 2: # importing modules from tqdm import tnrange from time import sleep # creating loop for i in tnrange(2, desc ="loop 1"): # creating nested loop for j in tnrange(5, desc ="loop 2"): # slowing the for loop sleep(0.2) Output : https://media.geeksforgeeks.org/wp-content/uploads/20200320004545/Untitled2-Jupyter-Notebook-Google-Chrome-20-03-2020-00_40_08.mp4 Example 3: # importing modules import time import sys from tqdm import trange # random function def random_task(): time.sleep(0.5) # another random function def another_random_task(): time.sleep(0.2) # Outer loop for i in trange(3, file=sys.stdout, desc='Outer loop'): random_task() # inner loop for j in trange(5,file=sys.stdout, desc='Inner loop'): another_random_task() Output : Last Updated : 22 Apr, 2020 Like Article Save Article Previous Python | Locking without Deadlocks Next PyQt5 - Access tooltip duration to view(drop-down) of ComboBox Share your thoughts in the comments Add Your Comment Please Login to comment... Similar Reads Python | How to make a terminal progress bar using tqdm PyQt5 - Image bar as Progress Bar PyQt5 - Translucent Bar of Progress Bar PyQt5 - Adding border to Bar of Progress Bar PyQt5 - Dotted border to bar of Progress Bar PyQt5 - Multi colored border to bar of Progress Bar PyQt5 - Skin to Bar of Progress Bar PyQt5 - Gradient color Bar of Progress Bar PyQt5 QProgressBar – How to create progress bar ? PyQt5 - How to automate Progress Bar while downloading using urllib? Like R rakshitarora Follow Article Tags : python-utility Python Practice Tags : python