Format a column-aligned table.
Given table = [['apples','oranges','cherries','banana'], ['Alice','Bob','Carol','David'], ['dogs','cats','moose','goose']],
print rows so that each column is right-aligned to the longest item in that column, separated by a single space.
Expected output:
apples oranges cherries banana
Alice Bob Carol David
dogs cats moose gooseSign in to save your code and track progress across devices.