i have question order of dictionary in python. in python 2.7
array ={"dad":"nse","cat":"error","bob":"das","nurse":"hello"} key in array: print key
why result shows
dad bob nurse cat
not
dad cat bob nurse
in standard python implementation, cpython, dictionaries have no guaranteed order, per docs.
Comments
Post a Comment