The dictionary snowfall maps keys (which represent a given month) to values that represent the amount of snowfall (in inches) for every time it snowed
The dictionary snowfall maps keys (which represent a given month) to values that represent the amount of snowfall (in inches) for every time it snowed that month. Write code that creates a new dictionary named month_total_snowfall where the keys are months and the values are floats that represent the total snowfall for that month (the sum of the values in snowfall for that month).
Then, create a new float called snowfall_all_months whoes value is the total snowfall for all months.
snowfalls = { 'December': [0.2], 'January': [1.5, 3, 2, 2.5], 'February': [7, 2.3, 1.2, 4], 'March': [1.5, 3, 4], 'April': [0.2], }
Step by Step Solution
There are 3 Steps involved in it
Step: 1
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started