- What is flow control?
Flow control is the process of managing the execution of the program.
- The order in which the statements are executed is decided by flow control.
- Python flow control
In python, flow control is divided into three types which are as follows
- Python Conditional statements
Python conditional statements are also known as selection statements.
Among multiple options only one statement is selected and executed is selection statements.
Conditional statements in python are if statement, if-else statements and if elif in python.
- Python Iterative statements
Python iterative statements are used to execute the same Statement repeatedly.
Sometimes multiple statements want to execute repeatedly is iterative statements.
Iterative statements in python: for loop and while loop.
- Python Transfer statements
Transfer statements in python are the statements which are used to transfer execution to other statements.
Python transfer statements are break statement, continue statement and pass statement.