Python: data Structures inside another : <p>In Perl you can do stuff like this:</p>

<pre><code>my $data-&gt;[texts}-&gt;{text1} = "hey";
print data-&gt;{texts}-&gt;{text1};
</code></pre>

<p>and it will print "hey". It is like a data structure (sort of array) inside another data structure...</p>

<p>Obviously this is possible in Python:</p>

<pre><code>data = { 'jack': 4098, 'sape': 4139 }
print data['jack'];
</code></pre>

<p>But I want something like: data['texts']['text1'] like it was done in Perl.</p>

<p>And I need to be able to easily remove and add to this structure...</p>

<p>Help?</p>
