Mon, 18 Sep 2023 02:38:10 +0000
Python

#Python people, what do you do when your program mainly consists of a large chain of if statements? I completed a coding exercise from the course I'm following and it was a chain of if, elif, else statements. Is there a cleaner way of managing code when it hits that point? The question doesn't matter for the course, but I'm curious on best practices.