if statement in Python

In python if statement can be used along with conditional statement to check whether the condition is met.

Example :
sum = 11
if sum > 10:
    print("sum is greater than 10")

Output
sum is greater than 10