Question: BlockPy: #42.4) Summing LoDoD Use the Loop Summing Pattern to calculate and print the total amount of rainfall. and Use the Summing and Filter Patterns

BlockPy: #42.4) Summing LoDoD Use the Loop Summing Pattern to calculate and print the total amount of rainfall.

and Use the Summing and Filter Patterns to calculate the total amount of rainfall on windy days.

code given:

forecast = [ {"Day": "Friday", "Location": "Blacksburg", "Weather": {"Rainfall": 2, "Temperature": 60, "Windy?": False}}, {"Day": "Saturday", "Location": "Blacksburg", "Weather": {"Rainfall": 4, "Temperature": 65, "Windy?": True}}, {"Day": "Sunday", "Location": "Blacksburg", "Weather": {"Rainfall": 1, "Temperature": 72, "Windy?": True}}, ]

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!