from itertools import zip_longest
list1 = [1, 2, 3, 4]
list2 = ['a', 'b', 'c']
for x, y in zip_longest(list1, list2):
    print(x, y)