How can I add new keys to a dictionary?
Asked 07 September, 2021
Viewed 1.4K times
  • 54
Votes

Is it possible to add a key to a Python dictionary after it has been created?

It doesn't seem to have an .add() method.

20 Answer