Python If … Else

if condition:
    # code block to execute if condition is true
if condition1:
    # code block to execute if condition1 is true
elif condition2:
    # code block to execute if condition2 is true and condition1 is false
else:
    # code block to execute if all conditions are false
if condition:
    # code block to execute if condition is true
else:
    # code block to execute if condition is false
x = 10

if x > 5:
    print("x is greater than 5")
elif x == 5:
    print("x is equal to 5")
else:
    print("x is less than 5")