Help for arrays: converting php code to python
<p>For the first time this is not python => php but php => python.
I've got small problem with arrays in python.
(I've already been to docs.python.org)</p>

<p>Here's my problem:
I get in python couples of strings like this:</p>

<pre><code>(People 1):
  &lt;criteria a&gt; &lt;data of the criteria&gt;
  &lt;criteria b&gt; &lt;data of the criteria&gt;
  &lt;criteria c&gt; &lt;data of the criteria&gt;
  &lt;criteria d&gt; &lt;data of the criteria&gt;
(People 2):
  &lt;criteria a&gt; &lt;data of the criteria&gt;
  &lt;criteria b&gt; &lt;data of the criteria&gt;
  &lt;criteria d&gt; &lt;data of the criteria&gt;
...
</code></pre>

<p>(note for people 2 criteria c doesn't exist)
So i'd like do that (in php it's very easy):</p>

<pre><code>array_push( tab[ "criteria a" ],
    array("People1", "data of the criteria")
);
</code></pre>

<p>Then I'd like to show all a list of the criterias that exists, and use the array to create a nice "insert SQL query" for my database.</p>

<p>Any idea how to do this?
Where should I look?
I miss string indexed arrays....</p>
