longest = len(max(l))
for col1, col2, col3 in zip(l[::3],l[1::3],l[2::3]):
print('{:^20}|{:^20}|{:^20}'.format(col1,col2,col3))
how can I use longest in place of the 20 so that my formatting will always fit? I also don't want my code looking ugly, so if possible, use formatting or some other way.