Closed maneesha closed 4 years ago
The episode Short Introduction to Programming in Python notes in the key points at the end:
Dictionaries are unordered data structures that provide mappings between keys and values.
However it is not actually noted in the lesson whether dictionaries are ordered. Also, as of Python 3.7, a dictionary's ordering is preserved (https://docs.python.org/3/library/collections.html).
Thank you, Maneesha. This discussion resurfaces from time to time. I think it would be best to remove the word "unordered" here. What do you think?
Yes, that sounds good!
This issue has been addressed in #433
The episode Short Introduction to Programming in Python notes in the key points at the end:
However it is not actually noted in the lesson whether dictionaries are ordered. Also, as of Python 3.7, a dictionary's ordering is preserved (https://docs.python.org/3/library/collections.html).