if, elif, and else statements are used to control the flow of execution in a Python program based on specified conditions.
Basic if Statement
The if statement evaluates a condition. If the condition is True, the block of code indented below the if statement is executed. If the condition is False, the block is skipped.