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
Step: 1
Get Instant Access to Expert-Tailored Solutions
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