Control Structure

Control Structure

  • Control statements in python are used to control the order of execution of the program based on the values and logic.

Types of Control Structure

1. conditional structure

  • Conditional Statement in Python perform different computations or actions depending on whether a specific Boolean constraint evaluates to true or false.

Types of Conditional Structure

1. if

2. else

3. elif

4. nested if else

2. Iteration Structure

  • Repeated execution of a set of statements is called iteration.

Types of Iteration Structure

1. for loop

2. while 

3. nested

3. Transfer Statement

1. Break

2. Continue

3. Pass

 

Comments