[BangPypers] help needed with dictionary
Anand Chitipothu
anandology at gmail.com
Fri Aug 29 12:07:57 CEST 2008
On Fri, Aug 29, 2008 at 3:27 PM, sunny_plone <san82moon at gmail.com> wrote:
>
> hi,
> sorry for late reply.
> i want to create a address book which has fields like name, phno, email id
> etc which are keys.... and i want each key to hav multiple values.... as
> many users will enter their names. so name key will contain many values. i
> am not able to store the values entered through command line. i am able to
> store 1st value, but wen sec value is entered first one is erased.
Shouldn't the code be this?
key[name].append(person_name)
Looks like you are always using the same key "Name".
More information about the BangPypers
mailing list