It consists of a Boolean expression which results is either TRUE or FALSE followed by one or more statements.
if else Statements
It also contains a Boolean expression. The if statement is followed by an optional else statement & if the expression results in FALSE, then else statement gets executed. It is also called alternative execution in which there are two possibilities of the condition determined in which any one of them will get executed.
Nested Statements
We can implement if statement and or if-else statement inside another if or if – else statement. Here more than one if conditions are applied & there can be more than one if within elif.
0 Comments
If you have any doubts,please let me know