Control Structures
Types Of Control Statements:
There are fundamentally three types of control statement in python .They are:
1. Selection statement
2. Iterative statement
3. Sequential statement
1. Selection Statement:
Selection statement is a decision making in programming language. It can allows to run the particular block of the code on decision made by verifying the given condition. Selection statement is also called as conditional statement.
In python supports three types of decision making statements. They are:
1. if statement
2. else statement
2. Iterative Statement:
Iterative statement are used when some block of code to be executed repeatedly until a given condition is satisfies.
Python supports 2 types of loops are,
1. For loop
2. While loop
3. Do while loop
3. Sequential Statement:
Sequential statement is also called as jump statement.
- break statement
- continue statement
More topic in Python