Sort:  

Thanks! I use python for data analysis but rarely use things like namedtuple and dictionary. By ordered I suppose you mean that if I want to, I can iterate through a namedtuple but not a dictionary?

When you use a dict, there is no guarantee you will get the keys in the order you created them. Access is typically by key so that's not important.

WIth named tuple, you know the first element, will always be returned first.

Cool! Thanks for the tips!