The world's bestselling Python introduction, with 3 million copies sold in 16 languages, is fully revised for Python 3.15, modern tooling, and the age of AI coding assistants.
Three complete hands-on projects (a game, a data visualization tool, and a deployable web application) anchor a structured, honest approach to learning to code alongside AI.
Three million copies. Sixteen languages. Four editions. Python Crash Course is the book that taught a generation to program, and the 4th edition meets the moment it's publishing into. Author Eric Matthes addresses AI coding assistants directly and practically, not as threats to learning, but as tools that work best when you actually understand what they're producing.
What's new and what's included in the 4th edition:
- Updated throughout for Python 3.15, with current syntax, libraries, and best practices
- A new environment management workflow using uv, the fast modern Python package manager
- VS Codium replaces VS Code as the recommended editor
- New "What I've Learned" exercises that build a personalized knowledge document readers use to calibrate AI assistant responses to their actual skill level
- Direct, practical guidance on using AI coding tools without outsourcing understanding
- Three complete projects carried forward from earlier editions and fully updated:
- A game built with Pygame
- A data visualization tool using Matplotlib and Plotly
- A deployable web application built with Django
The foundation is the same. The world around it has changed, and this edition acknowledges it.
Inhaltsverzeichnis
Preface to the Fourth Edition< BR> Acknowledgments< BR> Introduction< BR> Part I: BASICS< BR> Chapter 1: Getting Started< BR> Chapter 2: Variables and Simple Data Types< BR> Chapter 3: Introducing Lists< BR> Chapter 4: Working with Lists< BR> Chapter 5: if Statements< BR> Chapter 6: Dictionaries< BR> Chapter 7: User Input and while Loops< BR> Chapter 8: Functions< BR> Chapter 9: Typing in Python< BR> Chapter 10: Classes< BR> Chapter 11: Files and Exceptions< BR> Chapter 12: Testing Your Code< BR> Part II: PROJECTS< BR> Chapter 13: A Ship That Fires Bullets< BR> Chapter 14: Aliens! < BR> Chapter 15: Scoring< BR> Chapter 16: Generating Data< BR> Chapter 17: Downloading Data< BR> Chapter 18: Working with APIs< BR> Chapter 19: Getting Started with Django< BR> Chapter 20: User Accounts< BR> Chapter 21: Styling and Deploying an App< BR> Afterword< BR> Appendix A: Installation and Troubleshooting< BR> Appendix B: Text Editors and IDEs< BR> Appendix C: Getting Help< BR> Appendix D: Using Git for Version Control< BR> Appendix E: Troubleshooting Deployments< BR> Index