Let me explain my question with an example.
Here I have a simple for loop:
for x in range(10)
print(x)
output: 0 1 2 3 4 5 6 7 8 9
Now if I take user input like from a flask website or from the microphone for the person to say yes or no then I want it to start the for loop over again or break out of the for loop depending on the response. If the person says yes then redo the for loop again or if the person says no break out of the for loop and continue with the other code.
Question:
How to repeat a for loop after user input.
I am asking how to do this with a for loop and not a while loop because I want to put this inside of a while loop that does other things.