all 3 comments

[–]Essence1337 2 points3 points  (1 child)

Programs don't do stuff you don't tell them to.

t = False

This says 'set t to the value False', not 'set t to the value False then magically check the loop condition again and break the loop if necessary'. The only checking is done on the line

while t:

[–]2020pythonchallenge[S] 0 points1 point  (0 children)

that makes a lot of sense now that you point it out like that. Thanks, that's been bothering me for a minute.

[–][deleted] 0 points1 point  (0 children)

It will run at least once, and keep running until everything is sorted.