
Contents
Code Listings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
About the Author . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
Part I Foundations 1
1 Computer Systems and Software . . . . . . . . . . . . . . . . 3
2 Python Program Components . . . . . . . . . . . . . . . . . 7
3 Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
4 Repetition: For Loops . . . . . . . . . . . . . . . . . . . . . . 19
5 Computer Memory: Integers . . . . . . . . . . . . . . . . . . 25
6 Selection: If Statements . . . . . . . . . . . . . . . .