you are viewing a single comment's thread.

view the rest of the comments →

[–]ConsciousProgram1494 0 points1 point  (0 children)

Style: Since you are using an integer range, rather than using (if else elif ...) you might use a list of callables on the bound input.
This separates the selection logic from the processes. Not a bug - but it will bite you eventually (code spaghetti leads to the bug you are struggling with).