One of the most powerful features in programming is the ability to make decisions based on conditions. In Python, this is accomplished using conditional statements - if, elif, and else. They help ...
Python if... elif .... else statement This statement starts with if expression which is followed by scalar logical expression. elif and else are optional.