I am considering the two list:
a = [2, 4, 7]
b = [6, 9, 10, 90, 80]
I want to write these lists to a data file to show the elements of list ‘a’ in one column and of ‘b’ in the second column taking into consideration that a and b are not the same length.
A small variation from @eumiro