[Tutor] Using a dict value in the same dict

Válas Péter sulinet at postafiok.hu
Tue Jul 5 18:39:08 CEST 2011


Hi,

I have a dictionary with the keys 'a' and 'b'. It is not in a class. (I know
that everything is in a class, but not explicitly.)
May I use the value of 'a' when defining the value of 'b'? If so, what is
the syntax?

Thx,
Péter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110705/0099913b/attachment.html>


More information about the Tutor mailing list