astral orange wrote:

As far as the program. I did add print statements such as print
(MyNames) and got back:

{'middle': {}, 'last': {'Smith': ['John Larry Smith']}, 'first': {}}

Hmmm, as I understood the code, either that should be ... 'last': {} ...
before the first store(), as you seem to be thinking below, or after the first store(),

{'middle': {'Larry': ['John Larry Smith'],
 'last':   {'Smith': ['John Larry Smith'],
 'first':  {'John' " ['John Larry Smith']}

or the same with [['John','Larry','Smith']] for each entry (do not remember exactly what was stored. Maybe a typo.

tjr


--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to