<div dir="ltr"><br>
<br>
Message: 8<br>
Date: Thu, 31 Jul 2008 20:16:54 -0700 (PDT)<br>
From: Angela Yang &lt;<a href="mailto:angelayian@yahoo.com">angelayian@yahoo.com</a>&gt;<br>
Subject: [Tutor] how do I create a lists of values associated with a<br>
 &nbsp; &nbsp; &nbsp; &nbsp;key?<br>
To: <a href="mailto:tutor@python.org">tutor@python.org</a><br>
Message-ID: &lt;<a href="mailto:279879.31091.qm@web50107.mail.re2.yahoo.com">279879.31091.qm@web50107.mail.re2.yahoo.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br><div id=":47" class="ArwC7c ckChnd"><br>&gt; 
That did not work because list index is not numeric.<br>
<br>Dictionary is an unordered set (list is an ordered set) indexed by a immutable value (e.g. string, numbers, tuple)<br><br>&gt; 
But for dictionaries, it is key - value pairs.? But I need key -&gt; multiple values.<br>
<br>That would mean, a dictionary of lists. Dictionary keys cannot be a mutable (i.e. list cannot be a dictionary key) but dictionary&#39;s value may be mutable.<br>
</div></div>