can the sequence of entries in a dictionary be depended on?
priyaven at gmail.com
Fri Nov 21 19:33:18 CET 2008
I'm writing a program where i iterate through the entries in a
dictionary using a for loop. This for-loop is enclosed by another loop
which traverses through a list and checks the relation between each
entry in the list and each entry in the dictionary.
while I know that dictionaries are 'unordered', I'd like to know if
the order of traversal will be the same each time the dictionary is
like if i have
for i in (1,10)
for value in dictionary1:
am i assured that i always get the same sequence of outputs for any
two values of i?
More information about the Python-list