Re: dictionaries...

Marc Wachowitz (mw@ipx2.rz.uni-mannheim.de)
18 Jul 1994 11:42:59 GMT

Ron Forrester (rjf@aurora.pcg.com) wrote:
> months = { 'jan':1,
[...]
> 'dec':12
> }

> What is the easy way to enumerate the keys in the order they areu
> declared above?

Use an ordered list: month_order = ['jan', 'feb', ..., 'dec'].

------------------------------------------------------------------------------
* wonder everyday * nothing in particular * all is special *
Marc Wachowitz <mw@ipx2.rz.uni-mannheim.de>