How to do while loops with multiple conditions
Change the and
s to or
s.
while not condition1 or not condition2 or val == -1:
But there was nothing wrong with your original of using an if inside of a while True.
Change the and
s to or
s.
while not condition1 or not condition2 or val == -1:
But there was nothing wrong with your original of using an if inside of a while True.