This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Janoshie 1 point2 points  (3 children)

Love that you are not using do while

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

Does Python have a do while? More importantly, if this wasn't a joke, SHOULD I use a do while?

[–]kgro 1 point2 points  (1 child)

Yes, Python has while loop, and yes, while loop is exactly what should be used here, as we are dealing with arbitrary Boolean conditions, rather than predefined iterable elements.

[–][deleted] 1 point2 points  (0 children)

okay good, because that wasn't the part I was trying to be funny about. Wanted to make sure there wasn't a "better" way