What is a Conditional Statement?
VERSION OF IF ..ELSE STATMENT
IF STATEMENT
if condition:
# Statements to execute if
# condition is true
IF- ELSE
IF-ELIF-ELSE
statement . .
else: statement
NASTED- IF
if (condition1):
# Executes when condition1 is true
if (condition2):
# Executes when condition2 is true
SHORT HAND IF -ELSE STATEMENT
This can be used to write the if-else statements in a single line