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
Get step-by-step solutions from verified subject matter experts
