Python if Statement Syntax
Here, the program evaluates the test expression and will execute statement(s) only if the test expression is True.
If the test expression is False, the statement(s) is not executed.
In Python, the body of the if the statement is indicated by the indentation. The body starts with an indentation and the first unindented line marks the end. Python interprets non-zero values as True. None and 0 are interpreted as False.

Example:
#Check whether the given number is even or odd.
n = int(input())
if n % 2 == 0:
print(n,"is even.")
output:
6
6 is even.