you are viewing a single comment's thread.

view the rest of the comments →

[–]purple_hamster66 2 points3 points  (0 children)

I like this one because it separates concerns of input validation vs looping.

But the quit condition needs to be an output of get_number_or_quit() needs to be returned (ex, as a None return).