Hi,


I have a list of values for one key.  How do I specify this data structure?



First tried,



collection = []

collection['abby'].append('apprentice1')

collection['abby'].append('apprentice2')



That did not work because list index is not numeric.

But for dictionaries, it is key - value pairs.  But I need key -> multiple 
values.



Do you have some example how to specify this?



Angela








      
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to