Combining two lists using zip



examples/functional/create_list_using_zip.py
names = ['Jan', 'Feb', 'Mar', 'Apr', 'May']
days =  [31, 28, 31, 30]

zipped = zip(names, days)
print(zipped)

pairs = list(zipped)
print(pairs)

<zip object at 0x7fc1b4464d40>
[('Jan', 31), ('Feb', 28), ('Mar', 31), ('Apr', 30)]