> If I want to put a dictionary in a dictionary, does the syntax > for assigning and getting at the stuff in the inner dictionary > look something like this: outer_dictionary[inner_dictionary][key] = 'value'
Yes. Sometimes it's easier with Python to just try it at the >>> prompt rather than ask the question... >>> d1 = {'a':1,'b':2} >>> d2 = {'alpha':d1, 'beta': {'c':3,'d':4}} >>> print d2['alpha']['a'] 1 >>> d2['beta']['d'] = 42 >>> print d2['beta']['d'] 42 HTH, Alan G _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor