Mastery18 – Nesting of conditional statements

nesting is when you put conditionals inside other ones to check another condition. 

if something:

            thing1

            if something2:

                         this

             else:

                       that

there is an if and else conditionals inside the initial if.

reference:

http://www.tutorialspoint.com/python/nested_if_statements_in_python.htm

CC BY 4.0 Mastery18 – Nesting of conditional statements by sergio is licensed under a Creative Commons Attribution 4.0 International License.

Comments are closed.