[Tutor] How to store key->multiple values?

Alan Gauld alan.gauld at blueyonder.co.uk
Thu Jan 1 06:03:26 EST 2004


> I thought of using a dictionary but I found that dictionary only
allows one > value per key.

But the value can be a list :-)

> Can I use lists instead? How do I create a multidimensional
> list or tuple? How would I insert the values into a
> multidimensional list?

Have a look at the Raw Materials topic in my tutor.

Alan G
Author of the Learn to Program web tutor
http://www.freenetpages.co.uk/hp/alan.gauld




More information about the Tutor mailing list