zip() function works fine on two lists of the same size, however, it drops the elements from the bigger list if lists are of different size. How can I keep all the elements using zip()?
E.g. if a=[1,3,5,7] and b=[2,4,6,8,10], the output should be [(1, 2), (3, 4), (5, 6), (7, 8), (,10)]
and
if a=[1,3,5,7,9] and b=[2,4,6,8], the output should be [(1, 2), (3, 4), (5, 6), (7, 8), (9,)]