Suppose I have a nested list of items and to visualize it better, I want to display it in a tabular structure.
Let me show you below what I’m trying to achieve:
# Here it is a list
my_list=[[1,2,3,4,5],
[6,7,8,9,10],
[11,12,13,14,15]]
#Here it is in tabular structure
| 0 1 2 3 4
-----------------------
0 | 1 2 3 4 5
1 | 6 7 8 9 10
2 | 11 12 13 14 15
Can anyone know how I can code this or any guidance about it? Are there any libraries available in Python that help us in displaying lists in tabular form?