This is an example of what I am trying to do.
for (k,v), (k2,v2) in zip(name_to_phone.items(), name_to_address.items()):
if v2 or k2 not in address_to_all:
address_to_all[v2] = ([].append(k),v)
But the list doesn't show up in the tuple when I print it, it only says none. How can I fix this? Edit: These are the dictionaries:
name_to_phone = {'alice': 5678982231, 'bob': '111-234-5678', 'christine': 5556412237, 'daniel': '959-201-3198', 'edward': 5678982231}
name_to_address = {'alice': '11 hillview ave', 'bob': '25 arbor way', 'christine': '11 hillview ave', 'daniel': '180 ways court', 'edward': '11 hillview ave'}