Answers for "Python New Disctionary"

1

python create dictionary from key value

>>> L1 = ['a','b','c','d']
>>> L2 = [1,2,3,4]
>>> d = dict(zip(L1,L2))
>>> d
{'a': 1, 'b': 2, 'c': 3, 'd': 4}
Posted by: Guest on October-02-2020
3

Python New Disctionary

new_dict = dict()

#OR

new_dict = {}
Posted by: Guest on October-15-2020

Python Answers by Framework

Browse Popular Code Answers by Language