Dictionary basics
Dictionaries in loops and conditional statements
Dictionaries in functions
19. Exercise 3


Perfect!! Finally, the last question.


Given a pricelist in the template, write a function named calculate_price() that takes a dictionary structured in the following format:

customer_order = {
    'cheese': 3,
    'coke': 2

The customer order contains a list of item purchases with quantities as values. The function should return the total cost for the whole order. If a given item is not present in the pricelist, simply ignore it.