Sorry, it's my bad,
Try this maybe better ...
shortest = len(min(tableData, key = len))
rows = len(tableData)
for r in range(shortest):
for c in range(rows):
print(tableData [c] [r], end = " | ")
kenth | james | snoodog |
rys | jon | emeenem |
apples | kandell | kanyewest |
oranges | sheldon | jayz |
But you said the second row should be like this:
rys | sheldon | eminem |
Though to achieve that the selected column from a row will be different (random?). I don't know how to achieve that.
Where did you get this problem? I saw a question in StackOverflow with almost identical list.