How to add new keys to a dictionary in Python?
Answers
Answered by
0
dictionary['key'] = value ..Simple
Example:-
d = {}
d['a'] = 2
print(d)
Output:- {"a":2}
Similar questions