In Perl you can do stuff like this:
my $data->[texts}->{text1} = "hey";
print data->{texts}->{text1};
and it will print "hey". It is like a data structure (sort of array) inside another data structure...
Obviously this is possible in Python:
data = { 'jack': 4098, 'sape': 4139 }
print data['jack'];
But I want something like: data['texts']['text1'] like it was done in Perl.
And I need to be able to easily remove and add to this structure...
Help?