#Exam 3 def weather(num_days): counter=1 c_no_rain_warm=0 while(counter<=num_days): t=float(input("enter temperature ")) rain=int(input("enter rain indicator ")) if(t>=75 and rain==0): c_no_rain_warm=c_no_rain_warm+1 return c_no_rain_warm def main(): num_days=int(input("enter number of days ")) weather_res=weather(num_days) if(weather_res==0): print("NO rain warm days ") else: print("there are", weather_res, "warm dry days") main()