A selection control statement is a control statement providing selective execution of instructions. A selection control structure is a given set of instructions and the selection control statement(s) controlling their execution.
If Statement
An if statement is a selection control statement based on the value of a given Boolean expression. if statements may omit the “else” part.

Example 1:
check if number is greater than 0
number = 10if number > 0:print('Positive number') #Output- Positive number
Example 2:
number = -5if number > 0:print('Positive number')else:print('Negative number') #Output- Negative number