This is about as far as I've been able to get, but I'm not sure how to increase the count, or add the price to the previous sum of prices.
grouped = {}
for product in fruits:
name = product['product']
price = product['price']
if name not in grouped:
grouped[name] = {name: 1, 'price':price}
else:
grouped[name] = {name: +=1, 'price': price}
grouped = {}
for product in fruits:
name = product['product']
price = product['price']
if name not in grouped:
grouped[name] = {name: 1, 'price':price}
else:
grouped[name] = {name: +=1, 'price': price}