Decision Making in The Python Programming
if else Statement in Python Programming
What is if else Statement
In Python program the if statement alone tells us that
if a condition is true then it will execute a block of
statements and if the condition is false it won’t. But
what-if we want to do something else if the condition is
false. Here comes the else statement. We can use the
else statement with if statement to execute a block of
code when the condition is false.