I'm having problems. The code works, but I want it to work without appending the final input from user. Not sure how to end the loop without putting the incorrect variable in the list at the end. Quizzes = []
#Create variable to start the counter in the while loop
QuizNumber = 1
#Create variable to start while loop
QuizValue = 0
#Create while loop that ends if the user types anything outside of 0 and 15
while int(QuizValue) >= 0 and int(QuizValue) <= 15:
#Get user input for quiz values
QuizValue = input("Quiz " +str(QuizNumber) + ":")
#Make if statement to end while loop if user types anything not integer
if int(QuizValue) >= 0 or int(QuizValue) <= 15:
QuizValue = QuizValue
#Append to list
Quizzes.append(QuizValue)
else:
QuizValue = 999
#Counter for quiz number
QuizNumber = QuizNumber + 1