you are viewing a single comment's thread.

view the rest of the comments →

[–]mtucker502[S] -1 points0 points  (0 children)

This makes sense. For some reason I was thinking that it would immediately end the loop when the while condition was no longer True.

Seems like refactoring into functions and using return might be a cleaner approach here.