Friday, March 18, 2016

Add key to dictionary in Python

http://stackoverflow.com/questions/1024847/add-key-to-a-dictionary-in-python

This interesting.  I use Python dictionaries all the time but I have yet to add a key to a dictionary.

In every case so far, I just create a dictionary and then use it without modifying it further.

I will try to use the preferred method when I do add a key.

No comments: