- 198
- 103
Python:
def merge_list_to_dict(a, b):
ziptwolist = zip(a, b)
dictzip = dict(ziptwolist)
return dictzip
spisokv1 = ["kefir", "chifir", "moloko"]
spisokv2 = [100, 120, 80]
merge_list_to_dict(spisokv1, spisokv2)
zipik = merge_list_to_dict(dictzip)
print(zipik)