8. Keeping Track of the Produce


#1

Is there any reason that the order of stock always come with this order?

orange
pear
banana
apple

Thanks in advance.


#2

Not really. A dictionary is naturally unordered. However, when iterating a shopping_list, the references are ordered in the list. Output will always be the same as the order of the list.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.