Here below is a simple program to display data (list or list of dictionaries) in a tabular format using the “tabulate” package.
This is the required output:

Prerequisites:
If you don’t have the “tabulate” package installed, you can install it using:
pip install tabulate

The Program:
Following is the program code:

Sample Run:
Following is a sample run of the above program:

Thanks
Ahmed