def pprint_table(table):
col_paddings = []<EOL>for i in range(len(table[<NUM_LIT:0>])):<EOL><INDENT>col_paddings.append(get_max_width(table,i))<EOL><DEDENT>for row in table:<EOL><INDENT>print(row[<NUM_LIT:0>].ljust(col_paddings[<NUM_LIT:0>] + <NUM_LIT:1>), end="<STR_LIT>")<EOL>for i in range(<NUM_LIT:1>, len(row)):<EOL><INDENT>col = str(row[i]).rjust(col_paddings[i]+<NUM_LIT:2>)<EOL>print(col, end='<STR_LIT>')<EOL><DEDENT>print("<STR_LIT:\n>")<EOL><DEDENT>
Print a table in pretty format