I'm having trouble with writing a program that asks for the number of days in a month, only accepting values between 28 and 31 inclusive; then continuing to ask until it receives an acceptable value. Then asks for the daily high temperature (in Fahrenheit degrees) for each day. Only accepting values between -50 and 110; continuing to ask for values for each day until it receives an acceptable value.
This is what I have so far. I'm getting a TokenError: EOF in multi-line statement on line 11 error. I'm stuck on how to prompt the user to enter the high temperature of each day in the range--the last line of what I have.
totalnumberofday=0
totalDayHighTemp=0
num = int(input("Enter the number of days in a month:"))
if num <=28 or num>=31:
num=int(input("please reenter an acceptable value:"))
for i in range(1, num+1):
DayHighTemp=float(input("Please enter the daily high temperature"+ format(i+"d"))
format. Float will convert it to a number.