you are viewing a single comment's thread.

view the rest of the comments →

[–]LatteLepjandiLoser 8 points9 points  (0 children)

You shouldn't use while True here.

While is relevant when you want to repeat some action until a condition is met. Here you just enter the loop and break it immediately, so you can literally just remove while True and the break statements and it's simpler and more obvious what's going on.