Insertion Order is kept
Since Python 3.7
examples/dictionary/insertion_order.py
d = {} d['a'] = 1 d['b'] = 2 d['c'] = 3 d['d'] = 4 print(d)
{'a': 1, 'b': 2, 'c': 3, 'd': 4}
Since Python 3.7
d = {} d['a'] = 1 d['b'] = 2 d['c'] = 3 d['d'] = 4 print(d)
{'a': 1, 'b': 2, 'c': 3, 'd': 4}