On Fri, Aug 29, 2008 at 3:27 PM, sunny_plone <[EMAIL PROTECTED]> 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". _______________________________________________ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers