Boucle Python jusqu'à ce que la condition se réunisse
finished = False
while not finished:
... do something...
finished = evaluate_end_condition()
Disgusted Dove
finished = False
while not finished:
... do something...
finished = evaluate_end_condition()
try:
func()
except:
print("retrying")
x = 0
while x == 0:
try:
func()
x +=1
except:
pass