Computer Science, asked by bhupindersingh3537, 1 year ago

How to add new keys to a dictionary in Python?

Answers

Answered by Anonymous
0

dictionary['key'] = value ..Simple

Example:-

d = {}

d['a'] = 2

print(d)

Output:- {"a":2}

Similar questions