dictionary: keys() and values()

John Hunter jdhunter at nitace.bsd.uchicago.edu
Thu Jun 13 21:02:10 CEST 2002

For some dictionary m, if we call sequentially

keys = m.keys()
values = m.values()

Do we know if the values come out in the same order, that is does
m[keys[i]] necessarily equal values[i] ?

John Hunter

More information about the Python-list mailing list