Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!