I have a list of lists in python, each of the list within the list have the same number of elements.
sample_list = [['1','22222222222222222','333'],
['111111111','2','3'],
['1','2','3']]
I want to print out the elements in the list so that they look like this.
1 22222222222222222 333
111111111 2 3
1 2 3
In between the longest item to the next column there will be 2 spaces. So in the 2nd row first column the series of 1s continue and another 2 spaces later is when the next column continues. I won't know the exact length of each element so just using tabs(\t) won't work. How can I print the nested list into a table of columns separated by 2 spaces?
Edit : I want to as much as possible avoid external modules and I need it to be in python 2