Open bdonovan7 opened 6 years ago
How do you add something to a dictionary that is already created?
I think something like this would work.
d = {'key':'value'} print(d) {'key': 'value'} d['mynewkey'] = 'mynewvalue' print(d) {'mynewkey': 'mynewvalue', 'key': 'value'}
How do you add something to a dictionary that is already created?