Control Flow - Introduction

From the previous tutorials, you now know how to write basic Python code. Everything you have seen so far has consisted of sequential execution - lines of code are always performed one after the next, in exactly the order specified.

But we often use more complicated executions than that. Frequently, a program needs to skip over some statements, or choose between alternate sets of statements to execute. That is where control flow comes in. The use of different control statements that order the execution of the statements in a program (referred to as the program’s control flow).

The next tutorials are all about control flow - blocks; conditional statements (if, elif, else); loops (for and while); break continue and pass statements; range.
The previous tutorials explain the very basic fundamentals of python programming.
The next tutorials show more complex concepts.

Control Flow Index: