Which statement about dictionary order in modern Python is correct?
Select one:
From Python 3.6 on, dictionaries sort themselves automatically by key.
Equality for dictionaries depends on insertion order just like lists.
Dictionaries have a .sort() method just like lists for in-place sorting.
.sort()
From Python 3.7 on, insertion order is guaranteed, but dictionaries aren’t sequences.
Hint
Think about what changed in 3.6 and became guaranteed in 3.7.
Sorry! There has been an error processing your answer. Please try again.
Got feedback on this question?