image
image
image

Chapter 6: Flow Control and Loops in Python

image

Before tackling flow control, it is important we explore logical operators.

Comparison operators are special operators in Python that evaluate to either True or False state of the condition.

Program flow control refers to a way in which a programmer explicitly species the order of execution of program code lines. Normally, flow control involves placing some condition (s) on the program code lines. In this chapter, we will explore and test various flow controls in Python.