Transpose a table

A table is a list of rows, each a list of the same length. Write transpose(table) that returns the table with rows and columns swapped.

transpose([[1, 2, 3], [4, 5, 6]])  ->  [[1, 4], [2, 5], [3, 6]]
transpose([])                      ->  []
def transpose(table):
    ...