Menu
Coddy logo textTech

Challenge #5

Lesson 14 of 14 in Coddy's Dictionary in Python course.

challenge icon

Challenge

Easy

Create a function named calculate_total_value that calculates the total value of items in a dictionary, where the keys represent item names, and the values represent their prices. The function should take this dictionary as input and return the total value.

Try it yourself

def calculate_total_value(items_dict):
    # Write code here

All lessons in Dictionary in Python