Answer:
resps = []
percent_rain = [77, 45, 92, 83]
for percent in percent_rain:
if percent > 90:
resps.append("Bring an umbrella.")
elif percent > 80:
resps.append("Good for the flowers?")
elif percent > 50:
resps.append("Watch out for clouds!")
else:
resps.append("Nice day!")
for r in resps:
print(r)
Step-by-step explanation:
*The code is in Python.
Create an empty list called resps
Initialize a list called percent_rain with some values
Create a for loop that iterates through the percent_rain. Check each value in the percent_rain and add the required strings to the resps using append method
Create another for loop that iterates throgh the resps and print the values so that you can see if your program is correct or not