Each product is a dict with name and price. Write priciest(products) that returns the name of the one with the highest price. The list is not empty.
priciest([{'name': 'Mouse', 'price': 500}, {'name': 'Laptop', 'price': 50000}])
→ 'Laptop'priciest([{'name': 'Pen', 'price': 10}])
→ 'Pen'Submit runs 4 tests, including hidden edge cases.
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.