while 1 in 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
Example 3: while not command in python
condition = 3
while not (condition == 0) :
print(condition)
condition = condition - 1