I am trying to make a program for myself, not really related to any particular problem set.
The issue I am having is that I want a loop to iterate over a block of code and force the user to give one of two answers. If the answer isn't provided, I don't want to code to progress, and want it to again ask for input. But I also want to take a specific amount of correct answers (5 in this case) and then terminate the loop.
loops = 5
for i in range (loops):
p = input("Input:").lower()
if p not in ("a", "b"):
i -= 1