tableData = [['apples', 'oranges', 'cherries', 'banana'], ['Alice', 'Bob', 'Carol','David'], ['dogs', 'cats', 'moose', 'goose']] def printTabel(table): colWidth = [] for n in range(len(table)): col = [len(i) for i in table[n]] colWidth.append(max(col)) for x in range(len(table[0])): for y in range(len(table)): print(table[y][x].rjust(colWidth[y]), end=' ') print('') printTabel(tableData) """ apples Alice dogs oranges Bob cats cherries Carol moose banana David goose """