On the 1st exercise of python Dict Methods concept, Mecha Munch Management,
under -Sorting a Dictionary- paragraph, it says
#Default ordering for a dictionary is last in, first out (LIFO).
And right before, in < More on .keys()
, .values()
, and .items()
> paragraph, it says
In Python 3.7+, dicts
preserve the order in which entries are inserted allowing First-in, First-out (FIFO
), iteration when using .keys()
, .values()
, or .items()
.
Are both explanations compatible? or Is something incorrect?