In Python programming, flow control is the order in which statements or blocks of code are executed at runtime baed on a condition.
Control Flow Statements
The flow control statements are divided into three categories:
- Conditional statements
- Iterative statements
- Transfer statements
Conditional Statements
In Python, condition statements act depending on whether a given condition is True or False. You can execute different blocks of codes depending on the outcome of a condition. Condition statements always evaluate to either True or False.
There are three types of confitional statements.
- if statement
- if-else
- if-elif-else
- nested if-else
Iterative Statements
In Python, iterative statements allow us to execute a block of code repeatedly as long as the condition is True. We also call it a loop statements.
Python provides us the following two loop statement to perform some actions repeatedly.
- for loop
- while loop
Let's learn each one of them with the examples.
Transfer Statements
In Python, transfer statements are used to alter the program's way of execution in a certain manner. For this purpose, we use three types of transfer statements.
- break statement
- continue statement
- pass statement



