Flow Control

Flow control is controlling the order in which statements or function calls of a program are executed.

There are three control structures:

  • Sequence
  • Selection (the IF statement)
  • Iteration (While and For loops)

Python has various control structures such as while loops, for loops, and if statements, which are used to determine which section of code is executed according to certain conditions.

Lesson Content
0% Complete 0/3 Steps