Dictionary Tools Exercise
Question 1 of 5
You need to find the product with the highest sales from this data:
sales = {'laptop': 15000, 'phone': 25000, 'tablet': 8000, 'watch': 12000}Which approach correctly identifies the top-selling product?
max(sales.keys())
sales.max()
max(sales.values())
max(sales, key=sales.get)