until python code example
Example 1: python loop until condition met
finished = False
while not finished:
... do something...
finished = evaluate_end_condition()
Example 2: python while true
while True:
#code goes here no comment
finished = False
while not finished:
... do something...
finished = evaluate_end_condition()
while True:
#code goes here no comment