> For the complete documentation index, see [llms.txt](https://til.devjugal.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://til.devjugal.com/python/print-tabular-data.md).

# Print Tabular Data

We can use `tabulate` module in Python to print pretty tabular format data.

## Example

```python
>>> from tabulate import tabulate
>>> header = ["Name", "Age"]
>>> data = [["Michael", 35], ["John", 23], ["Harley", 25]]
>>> print(tabulate(data, headers=header))
Name       Age
-------  -----
Michael     35
John        23
Harley      25
```

***Source:*** [***PyPi Project***](https://pypi.org/project/tabulate/)
