a/ The problem of the 5th quiz is to repeat an unknown number of times from the input user. therefore, there is no specific number entered in range () syntax.
b/The loop function requires you to enter an integer value. Since the option of entering a specific number is excluded, you could enter a variable within integer value in the range () syntax.
The code will turn out like this for i in range(variable):
Ex:
for i in range(times):
*Remember to add a colon (:) too.
c/However, there would be errors if you forget to convert the entered value to an integer by using the input function for integer number:
variable = int(input('How many times to repeat? '))
or
variable = eval(input('How many times to repeat? '))
Ex:
times = int(input('How many times to repeat? '))
d/ Another error is that you forget to indent the print() line that you want to get repeated.
The full repeating code is
for i in range(variable/number):
print('words describing what to enter')
not like this
for i in range(variable/number):
print('words describing what to enter')
So your loop code should be like this:
for i in range(times):
print('I love you. Happy Valentine!')
e/I could show the full fixed code for you, but I am not allowed to do so (by prof). Sorry, girl, but I truly don't know how to explain this one for you to understand best. I did break it down into each step within each error.
Hope that you will get what I mean to do your quiz.