from itertools import zip_longest
lis = [['a', 'b', 'c'], [1, 2, 3], ['i', 'j', 'k', 'l'], [5, 10, 15, 20]]
list(zip_longest(fillvalue='', *lis))
Python, how to write nested list with unequal lengths to a csv file?