You are on page 1of 3

IF ELSE STATEMENTS

SYNTAX SYNTAX SYNTAX

If condition: if (condition): if (condition):


# Statement To Execute if # Executes this block if statement
# Condition is true # condition is true elif (condition):
else: statement
# Executes this block if .
# condition is false .
else:
statement
FLOWCHARTS

IF STATEMENT IF – ELSE STATEMENT IF – ELIF – ELSE STATEMENT


NESTED IF STATEMENTS

SYNTAX FLOWCHART
if (condition1):
# Executes when condition1 is
true
if (condition2):
# Executes when condition2
is true
# if Block is end here
# if Block is end here

You might also like