Contents at a Glance
About the Author ............................................................................ xiii
About the Technical Reviewer ......................................................... xv
Introduction ................................................................................... xvii
■■Chapter 1: What Is a Programming Language? .............................. 1
■■Chapter 2: What Is Python? ............................................................ 3
■■Chapter 3: Introducing Python ....................................................... 7
■■Chapter 4: Breaking Free from the Interpreter ............................. 23
■■Chapter 5: Making Decisions ........................................................ 27
■■Chapter 6: Making the Raspberry Pi Repeat Itself ....................... 37
■■Chapter 7: Containers ................................................................... 43
■■Chapter 8: Introduction to IDLE under LXDE ................................. 53
■■Chapter 9: Basic Introduction to PyGame ..................................... 59
■■Chapter 10: Designing Your Game ................................................ 67
■■Chapter 11: Game Project: Bricks ................................................ 73
■■Chapter 12: User-Defined Functions ............................................. 87
■■Chapter 13: File Input and Output ................................................ 95
■■Chapter 14: Introducing Object-Oriented Programming ............... 99
■■Chapter 15: Inheritance, Composition, and Aggregation ............ 109
■■Chapter 16: Game Project: Snake ............................................... 117
■ Contents at a Glance
iv
■■Chapter 17: Model View Controller ............................................. 141
■■Chapter 18: Sound ...................................................................... 153
■■Chapter 19: Finite State Machines ............................................. 155
■■Chapter 20: Invaders .................................................................. 163
■■Chapter 21: Conclusion .............................................................. 193
Index .............................................................................................. 195