Python has a quirky else construct for while where it'll execute the else if you hit the while condition and it's false.
1337toothbrush posted... Python has a quirky else construct for while where it'll execute the else if you hit the while condition and it's false.I suppose that does simplify the if{while}else logic.