[Tutor] problem with dictionaries

Christian Meesters cmeesters at ucdavis.edu
Mon Aug 23 22:08:36 CEST 2004


Hi

Thanks again for the last time I asked for help. I solved the problem  
combining the input of Alan and Kent. Your help was really valuable!

But now I have a more basic problem:
Imagine your want to nest dictionaries like this:
{position1:{A1:N1,A2:N2,A3:N3,...,Ax:Nx},position2:{B1:M1,B2:M2,...,Bx: 
Mx},...}

How do you add an Ay:Ny pair at position1 without overriding the  
already present dictionary there? (I vaguely remember this, but cannot  
find it anywhere in the documentations. Pointing me on an example is  
probably sufficient ;-) .)

Thanks a lot,
Christian



More information about the Tutor mailing list