#Write a function, weather , that has one parameter - num_days - number of #days. The function reads temperature for each day and rain/no rain #indicator for each day. (0 - NO RAIN, 1 0 RAIN). The function returns the #number of days with WARM (75 and above Fahrenheit) temperature and NO #RAIN #Write main that reads the number of days to process, calls function #weather to find the number of WARM NO RAIN days. If there are NO warm #days without rain, the program prints appropriate message. #You can randomly generate your data instead of the user input def weather(num_days): count=0 for i in range(num_days): temp=float(input("enter Fahrenheit: ")) rain=int(input("enter rain indicator, 0 - NO Rain, 1- Rain: ")) if(temp>=75 and rain==0): count+=1 #this is local variable for function weather return count def main(): num_days=int(input("enter number of days ")) if(num_days>0): count=weather(num_days) #count is a local variable for function main if(count==0): print("no warm days without rain") else: print(count,"warm days without rain") else: print("invalid input") main()