Python coding question: still in the process of learning dictionaries. How do you calculate the max/ average values of a dictionary when it has multiple values? So far I learned how to code a dictionary with a single value, key value. But when presented a problem for example. spent_dict = {'Gary_spent': [80,45, 60], 'Martha_spent': [53, 25, 70], 'Jake_spent': [111, 95, 80]} How would I go about coding the total each person spent with multiple values for each key?

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 8RQ
icon
Related questions
Question

Python coding question: still in the process of learning dictionaries. How do you calculate the max/ average values of a dictionary when it has multiple values? So far I learned how to code a dictionary with a single value, key value. But when presented a problem for example.

spent_dict = {'Gary_spent': [80,45, 60], 'Martha_spent': [53, 25, 70],
'Jake_spent': [111, 95, 80]}

How would I go about coding the total each person spent with multiple values for each key?

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning