Another part of program takes care of that patternless stuff, only saving and retrieving for comparison is concerned for this part of the code.<br><br><span style="color: rgb(204, 0, 0);">
In [11]: d = { (&#39;a&#39;, &#39;b&#39;): &#39;1&#39;,</span><br style="color: rgb(204, 0, 0);"><span style="color: rgb(204, 0, 0);">
 &nbsp; &nbsp;....: &nbsp; (&#39;c&#39;, &#39;d&#39;): &#39;2&#39; }</span><br>
In [12]:<br>
In [12]: d[&#39;a&#39;, &#39;b&#39;]<br>
Out[12]: &#39;1&#39;<br><br>that does look like what I looking for, how does it work?<br><br><br><br><br><div class="gmail_quote">On Sat, Mar 22, 2008 at 3:12 PM, Kent Johnson &lt;<a href="mailto:kent37@tds.net">kent37@tds.net</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">elis aeris wrote:<br>
&gt; there is no pattern in the numbers.<br>
<br>
</div>Then how do you expect to create them automatically? I don&#39;t understand<br>
that part of the question.<br>
<div class="Ih2E3d"><br>
&gt; two strings that look like &quot;2.3.3.3.3.&quot;, &nbsp;youknow, &nbsp; str(int) + &quot;.&quot; +<br>
&gt; str(int) + &quot;.&quot; and so forth<br>
&gt; are presented and they equal to a value, which is the third string.<br>
&gt;<br>
&gt; in short, given the first two strings, &nbsp;return the third string from the<br>
&gt; list.<br>
<br>
</div>That sounds like you want a dict whose key is a tuple of the first two<br>
strings, and the value is the third string. For example,<br>
In [11]: d = { (&#39;a&#39;, &#39;b&#39;): &#39;1&#39;,<br>
 &nbsp; &nbsp;....: &nbsp; (&#39;c&#39;, &#39;d&#39;): &#39;2&#39; }<br>
In [12]:<br>
In [12]: d[&#39;a&#39;, &#39;b&#39;]<br>
Out[12]: &#39;1&#39;<br>
<font color="#888888"><br>
Kent<br>
</font></blockquote></div><br>