Zipping does not do what I thought, it seems to drop items, forgive me if this is a stupid question, but….
names = ['nik', 'katie', 'james', "katie"]
ages = [32, 31, 34, 106]
my_dict = dict(zip(names, ages))
print(my_dict)
this gives….
{‘nik’: 32, ‘katie’: 106, ‘james’: 34}
Where did my younger Katie go? And how do I use zip to create a dictionary that keeps my original list length and doesn’t drop any item?