Sep-20-2018, 03:35 AM
Dictionaries use a hash table, and that's where the order of the dictionary comes from, not from how you entered it. Although I believe this behavior may be changing (or has it changed in 3.7?).
If you really need order in a dictionary, you can use OrderedDict in the collections module.
If you really need order in a dictionary, you can use OrderedDict in the collections module.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures