Allen John Schmidt, Jr. wrote: > Ok, I have had enough. I have looked all through the python docs and I > cannot find it. How do you insert an entry into a dictionary? > > Thanx! >
>>> my_dict = {}
>>> my_dict['new_entry'] = ['simple', 'as', 1, 2, 3]
>>> my_dict
{'new_entry': ['simple', 'as', 1, 2, 3]}
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor
