i

Python Programming

Python Control Statements

It controls change in statement from its normal sequence. If we leave a scope all objects automatically created in scope are destroyed.

In python we have following control statements:

1.    break statement

2.    continue statement

3.    pass statement

1. Statement break:

It terminates the loop statement and transfer execution of the statement immediately following the loop.

2. Statement control:

Control cause loop to skip remainder of its body and immediately retest its conditions before looping again.

3. Statement pass::

This statement is used when statement is required syntactically.