CONTEST - What is the (best) solution?
Cappy2112
cappy2112 at gmail.com
Wed Feb 2 20:45:04 EST 2005
> dictionaries can NOT contain dictionaries.
Who told you this?
In my python, they can.
d1={1:"one"}
>>> d2={2:"two"}
>>> d1
{1: 'one'}
>>> d2
{2: 'two'}
>>> d3={3:d2}
>>> d3
{3: {2: 'two'}}
python at hope.cz wrote:
> Fuzzyman wrote:
> > Can your dictionaries contain dictionaries ?
> Hi Fuzzy,
> dictionaries can NOT contain dictionaries.
> I re-checked and I would need only the last dictionary.
> Any idea how I could do that?
> Thanks
> Lad.
More information about the Python-list
mailing list