Nesting of conditonal statements

I made a Python program with a basic nesting of conditional statements. Check it out.

Nesting is about having an if statement within another if statement where the second if statement depends on wether the first if statement is true or not. Then, with the second if statement comes an else, where you define what you want the program to do if the second if statement is false. Here’s a very simple and easy example of nesting. 🙂

CC BY 4.0 Nesting of conditonal statements by Jorge Padilla is licensed under a Creative Commons Attribution 4.0 International License.

Comments are closed.