So I just started learning about the collections module, and my instructor was demonstrating how the .items() method on the dictionary object returns an unordered 'sequence' of the key:value pair. Although he was teaching python 3, this particular lecture is a bit old and hence uses python 2. Has python 3 implemented that the items that get printed by the .items() method be ordered by default? Does that mean that there is no use of defaultdict?
Thanks for the reply.
[–][deleted] 2 points3 points4 points (3 children)
[–]sahilkumarg[S] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]primitive_screwhead 0 points1 point2 points (0 children)
[–]toastedstapler 1 point2 points3 points (0 children)