Page 130 - TechPluse_C8_Flipbook
P. 130
On running the above program, we get the following output:
Program 4: To display one of the two alternate messages.
On running the above program, we get the following output:
Nested if Statement
Python allows the nested if statement. This means the if indented block inside another if…else
indented block. The second nested if indented block will run only when the first if condition
evaluates to be true.
128 Premium Edition-VIII

