In this Video I am going to show How to use Python IF...ELIF...ELSE Statements and nested IF statements in python. In python One conditional can also be nested within another.
The if statement evaluates a Boolean condition, and if it is True, performs the indented statements(or a block or code); but if the test is False, it does nothing. The if statement can have an optional else part which will be performed if the test result is False.
If you if condition expression contains logical operators then,
In (A and B), if A is false, then so is the expression, and there is no need to evaluate B
In (A or B), if A is true, then so is the expression, and there is no need to evaluate B
github link for python programs
https://github.com/RitaJain/Python-Pr...
#ritajainpythonlectures
#ritajainlectures