Does Python have anything in the fashion of a \"redo\" statement that exists in some languages?
(The \"redo\" statement is a statement that (just like \"break\" or \
There is no redo in python. A very understandable solution is as follow:
for x in mylist:
redo = True
while redo:
redo = False
If should_redo:
redo = True
It's clear enough to do not add comments
Continue will work as if it was in the for loop
But break is not useable, this solution make break useable but the code is less clear.