June 2002
Beginner to intermediate
640 pages
14h 24m
English
Terms in This Chapter
Argument
break and continue statements
Built-in (intrinsic) functions
Compound statement
else/elif clause
for loop
Function
if, for, and while statements
Iteration
Key/value pair
Looping
Method
Modulus operator
Nested dictionary
Sequence
String format operator
Subordinate statement
Suite
Control flow instructs Python, on the basis of certain conditions, to execute particular statements and not others. It also allows repeated execution of statements until some conditions are met and permits branching of conditional execution. In this chapter, we'll cover the if, while, and for compound statements, all of which control statement execution in Python.
Read now
Unlock full access