ROHINI COLLEGE OF ENGINEERING & TECHNOLOGY
GE3151-PROBLEM SOLVING AND PYTHON PROGRAMMING
3.2. Conditional (if), alternative (if-else), chained conditional (if-elif-else)
CONTROL STRUCTURES
if statement while loop break statement
if-else statement for loop pass statement
if-elif-else statement nested loop continue statement
Nested Conditional
Decision Making (or) Conditionals (or) Branching
The execution of the program depends upon the condition. The sequence of the control
flow differs from the normal program. The decision making statements evaluate the conditions
and produce True or False as outcome.
Types of conditional Statement
1. if statement
2. if-else statement
3. if-elif-else statement
4. Nested Conditional