The programm is check if input value is valid in list. below is my code. could you please help?thanks
while True:
try:
count = 0
Day_list = []
days = int(input("Enter number : "))
except ValueError:
print("Please input the integer")
else:
for i in range(days):
Day_list.append(float(input("Enter the day "+str(i+1)+ ": " )))
if( 0<= Day_list[i] <=10):
print('good' )
else:
print('Amount cant be negative, try again')
break
i would like check the value one by one
eg. Enter the day 1 : -1
then output : Amount cant be negative, try again
return Enter the day 1 : 1
Enter the day 2 :
but i dont have idea where is mistake,thanks