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
Math,
6 months ago
Computer Science,
1 year ago
Math,
1 year ago
Math,
1 year ago
Biology,
1 year ago