Control statements in Python:
- The control statement is nothing but, is used to control your program.
- That means you are having control over how it executes based on logic and based on your requirements.
Types of control statement:
There are two types of control statements,
1. Conditionalcontrol statement
1.1. Branching statements
*If statement
*If – else statement
*Nested if....else statement
*If ....else ladder
1.2. Looping statements
*for
*While
2. Unconditional control statement or looping control statement
*Break
*Continue
*Pass
Note:
Each type has links, so please press the link to learn deeply.
0 Comments