Think Python, 3rd Edition
How to Think Like a Computer Scientist



Book Details
Author | Allen Downey |
Publisher | O'Reilly Media |
Published | 2024 |
Edition | 3 |
Paperback | 328 pages |
Language | English |
ISBN-13 | 9781098155421, 9781098155438 |
ISBN-10 | 1098155424, 1098155432 |
License | Creative Commons Attribution-NonCommercial-ShareAlike |
Book Description
Think Python is an introduction to Python programming for beginners. It starts with basic concepts of programming; it is carefully designed to define all terms when they are first used and to develop each new concept in a logical progression. Larger pieces, like recursion and object-oriented programming, are divided into a sequence of smaller steps and introduced over the course of several chapters.
Python is an excellent way to get started in programming, and this clear, concise guide walks you through Python a step at a time - beginning with basic programming concepts before moving on to functions, data structures, and object-oriented design. This revised third edition reflects the growing role of large language models (LLMs) in programming and includes exercises on effective LLM prompts, testing code, and debugging skills.
With this popular hands-on guide at your side, you'll get:
- A grounding in the syntax and semantics of the Python language
- A clear definition of each programming concept, with emphasis on clear vocabulary
- How to work with variables, statements, functions, and data structures in a logical progression
- Techniques for reading and writing files and databases
- A solid understanding of objects, methods, and object-oriented programming
- Debugging strategies for syntax, runtime, and semantic errors
- An introduction to recursion, interface design, data structures, and basic algorithms
- How to use LLMs - including effective prompts, testing code, and debugging
- And more
This book is available under a Creative Commons Attribution-NonCommercial-ShareAlike license (CC BY-NC-SA), which means that you are free to copy, distribute, and modify it, as long as you credit the original author, don't use it for commercial purposes, and share any adaptations under the same license.
If you enjoyed the book and would like to support the author, you can purchase a printed copy (hardcover or paperback) from official retailers.