Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Quiz
4. Question 3
Summary

Instruction

Perfect! And now, an exercise on dictionaries.

Exercise

Write a function named find_total_product_price(pricelist, product, quantity), where pricelist is a dictionary with String keys (product names) and float values (prices for single pieces). If product is present in pricelist, return the total price for {quantity} pieces of {product}. If the product is not present in 'pricelist', return 0.0 instead.