Answers for "how to add to a dictionary using values from 2 different lists"

3

python 3 how to set a dictionary from two lists

mydict = dict(zip(list1, list2))
Posted by: Guest on November-16-2020

Code answers related to "how to add to a dictionary using values from 2 different lists"

Python Answers by Framework

Browse Popular Code Answers by Language