datacarpentry / python-ecology-lesson

Data Analysis and Visualization in Python for Ecologists
https://datacarpentry.org/python-ecology-lesson
Other
160 stars 310 forks source link

Ordered items in dictionary? #425

Closed maneesha closed 4 years ago

maneesha commented 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).

maxim-belkin commented 4 years ago

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?

maneesha commented 4 years ago

Yes, that sounds good!

maxim-belkin commented 4 years ago

This issue has been addressed in #433