[BangPypers] help needed with dictionary

sunny_plone san82moon at gmail.com
Fri Aug 29 11:02:50 CEST 2008

  hi all,
i am a newbie in python.  i was trying to work with dictionaries.  i wanted
to input values  through command line and store the values in a dictionary.
i mean for the same key , multiple values. can any1 suggest me how can i do
it.....thank you....

i tried this, but the old value is replaced by new one, but i want to store
al values entered by user.
kev = {}
if kev.has_key('Name'):
	print 'name is ', kev['Name']
	kev['Name'] = [person_name] 
print "kevin's name is %s" % kev['Name']

View this message in context: http://www.nabble.com/help-needed-with-dictionary-tp19215907p19215907.html
Sent from the BangPypers - Bangalore Python Users Group mailing list archive at Nabble.com.

More information about the BangPypers mailing list