Nested If and ElIf in Python
In Python we can use Nested If (If within if) and Else if Ladder for Multiple Conditions. Following examples shows the syntax of if..elif
From Basic to the Best
In Python we can use Nested If (If within if) and Else if Ladder for Multiple Conditions. Following examples shows the syntax of if..elif
In C,C++,Java etc there are main three Decision Making blocks. If, Switch and Conditional Operators (?). In Python there is If . After Python 2.5