2 ms·
Ordered by insertion (see [Mailinglist](https://mail.python.org/pipermail/python-dev/2017-December/151283.html https://mail.python.org/pipermail/python-dev/2017
by alfons_foobar 3y ago
Ordered by insertion (see [Mailinglist](https://mail.python.org/pipermail/python-dev/2017-December/151283.html https://mail.python.org/pipermail/python-dev/2017-December/1...))
This might or might not be what you want/expect...
- johndough 3y agoYou are correct. Dicts are ordered by insertion. Also, I'd like to add that, maybe surprisingly, sets are not. >>> set([3, 2, 1]) {1, 2, 3} >>> set([10, 100, 1000]) {1000, 10, 100}