Search⌘ K
AI Features

Exercise: Finding the Customer With the Most Purchases

Explore how to write a Python function to determine which customer made the most purchases over a week by processing dictionary data. Understand how to work with lists, loops, and dictionaries to sum daily purchases and return meaningful results.

We'll cover the following...

Problem statement

You have been provided with a groceries dictionary that contains the names of the customer as the key and the number of items they bought each day in a week as a list of values. ...