Beginning Question about Python functions, parameters...
Terry Reedy
tjreedy at udel.edu
Mon Nov 23 20:05:36 EST 2009
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
More information about the Python-list
mailing list