To our family, who inspire, encourage, and support us in school, work, and life
Copyright
Brief Table of Contents
Table of Contents
Preface
Acknowledgments
About this book
Chapter 1. Getting Started
Chapter 2. Remember This—Memory and Variables
Chapter 3. Basic Math
Chapter 4. Types of Data
Chapter 5. Input
Chapter 6. GUIs—Graphical User Interfaces
Chapter 7. Decisions, Decisions
Chapter 8. Loop the Loop
Chapter 9. Just for You—Comments
Chapter 10. Game Time
Chapter 11. Nested and Variable Loops
Chapter 12. Collecting Things Together—Lists
Chapter 13. Functions
Chapter 14. Objects
Chapter 15. Modules
Chapter 16. Graphics
Chapter 17. Sprites and Collision Detection
Chapter 18. A New Kind of Input—Events
Chapter 19. Sound
Chapter 20. More GUIs
Chapter 21. Print Formatting and Strings
Chapter 22. File Input and Output
Chapter 23. Take a Chance—Randomness
Chapter 24. Computer Simulations
Chapter 25. What’s Next?
Appendix Variable Naming Rules
Appendix Answers to Self-Test Questions
Index
List of Tables
List of Listings
Installing Python
Starting Python with IDLE
Instructions, please
If it doesn’t work
Interacting with Python
Time to program