If I got this line of code:
my_list = [3,4,7,2,1,6,8,2,1,4]
I can sort this list with:
my_list.sort()
But if I want to create a product list, For example: 2 milks, 3 cookies and so on, if I will sort this list [3,2] I will not be able to know how many milk should I buy or cookies. My question is how can I use dictionary or list so I would be able to sort the list/dictionary and also know the product name after the sort.