![Kindle app logo image](https://m.media-amazon.com/images/G/01/kindle/app/kindle-app-logo._CB668847749_.png)
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Think Python: How to Think Like a Computer Scientist 2nd Edition
There is a newer edition of this item:
If you want to learn how to program, working with Python is an excellent way to start. This hands-on guide takes you through the language a step at a time, beginning with basic programming concepts before moving on to functions, recursion, data structures, and object-oriented design. This second edition and its supporting code have been updated for Python 3.
Through exercises in each chapter, you’ll try out programming concepts as you learn them. Think Python is ideal for students at the high school or college level, as well as self-learners, home-schooled students, and professionals who need to learn programming basics. Beginners just getting their feet wet will learn how to start with Python in a browser.
- Start with the basics, including language syntax and semantics
- Get a clear definition of each programming concept
- Learn about values, variables, statements, functions, and data structures in a logical progression
- Discover how to work with files and databases
- Understand objects, methods, and object-oriented programming
- Use debugging techniques to fix syntax, runtime, and semantic errors
- Explore interface design, data structures, and GUI-based programs through case studies
- ISBN-101491939362
- ISBN-13978-1491939369
- Edition2nd
- PublisherO'Reilly Media
- Publication dateDecember 28, 2015
- LanguageEnglish
- Dimensions7.01 x 0.61 x 9.17 inches
- Print length292 pages
Customers who viewed this item also viewed
From the brand
![oreilly](https://m.media-amazon.com/images/S/aplus-media-library-service-media/96e1cf5d-3b78-414c-80f7-51e4f58b31ba.__CR0,0,1464,625_PT0_SX1464_V1___.jpg)
-
See more books in the series
-
More From O'Reilly
-
Sharing the knowledge of experts
O'Reilly's mission is to change the world by sharing the knowledge of innovators. For over 40 years, we've inspired companies and individuals to do new things (and do them better) by providing the skills and understanding that are necessary for success.
Our customers are hungry to build the innovations that propel the world forward. And we help them do just that.
Editorial Reviews
About the Author
Allen Downey is a Professor of Computer Science at Olin College of Engineering. He has taught at Wellesley College, Colby College and U.C. Berkeley. He has a Ph.D. in Computer Science from U.C. Berkeley and Master's and Bachelor's degrees from MIT.
Product details
- Publisher : O'Reilly Media; 2nd edition (December 28, 2015)
- Language : English
- Paperback : 292 pages
- ISBN-10 : 1491939362
- ISBN-13 : 978-1491939369
- Item Weight : 1.04 pounds
- Dimensions : 7.01 x 0.61 x 9.17 inches
- Best Sellers Rank: #189,467 in Books (See Top 100 in Books)
- #96 in Computer Programming Languages
- #173 in Python Programming
- #374 in Software Design, Testing & Engineering (Books)
- Customer Reviews:
About the author
![Allen Downey](https://m.media-amazon.com/images/S/amzn-author-media-prod/5ik2f2iie2kvhop18krahpo32e._SY600_.jpg)
Allen Downey is a Professor Emeritus at Olin College and Principal Data Scientist at PyMC Labs. He is the author of several books related to programming and data science, including Probably Overthinking It, Think Python, Think Stats, and Think Bayes. The idea behind these books is that if you know how to program, you can use that skill to learn other things.
Allen has a Ph.D. from U.C. Berkeley and M.S. and B.S. degrees from MIT. He has taught at Olin College, Colby College and Wellesley College.
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on AmazonCustomers say
Customers find the book effective in teaching Python basics and programming methodology. They describe it as a great book for beginners to mid-level Python programmers. The book is well-written, concise, and organized. It offers good value for money with an online version that's free.
AI-generated from the text of customer reviews
Customers find the book helpful for learning Python. They appreciate its pedagogical approach that focuses on understanding and provides simple explanations of how it works. The book is described as a great resource for beginners to mid-level Python users, with good exercises and a focus on understanding.
"Great book. Helped me through two CS classes. The pages are tattered from going through it, but I'm grateful that I bought it." Read more
"...What I noticed is that this book could be a good book for beginners, if you're not new to programming. There's nothing you cannot do...." Read more
"...It will definitely give the reader an indication about the language and its structure...." Read more
"...It was good as a supplement, but I do worry that it would not be sufficient for someone who was only using this book or someone who had not had a..." Read more
Customers find the book well-written and easy to understand. They appreciate the clear approach to teaching and presentation. However, some find the dialectic dense and not suitable for beginners.
"Great book. Helped me through two CS classes. The pages are tattered from going through it, but I'm grateful that I bought it." Read more
"...There's nothing you cannot do. It's a dense dialectic, and seems like it was intended to be read, not skimmed...." Read more
"...Overall, as a primer it's a great book. But be prepared to go deeper with other resources if you want to become even a good novice Python programmer." Read more
"I bought this book for one of my college courses. It's a really good book. It explains the coding well and uses good examples...." Read more
Customers appreciate the book's value for money. They find it easy to understand, affordable, and there are some extra features like the online version that are free. However, some feel it should be cheaper overall.
"...It's well written, easy to understand, very affordable, and there are some extra resources available to you as well, which I found really..." Read more
"...Cards are really nice are good price as well." Read more
"The online version are free. It should be cheaper. But overall it is okay" Read more
"...st off....waaaaay cheaper than on campus. Second, does the job and fairly simple explanation of how python works." Read more
Reviews with images
![I think, therefore I am](https://images-na.ssl-images-amazon.com/images/G/01/x-locale/common/transparent-pixel._V192234675_.gif)
I think, therefore I am
Top reviews from the United States
There was a problem filtering reviews right now. Please try again later.
- Reviewed in the United States on September 24, 2024Great book. Helped me through two CS classes. The pages are tattered from going through it, but I'm grateful that I bought it.
- Reviewed in the United States on December 8, 2022I liked that it seemed tailored to my needs where I'm at in my programming journey. I had previously read Python for Everybody and done most of the exercises there. The author of that book, Dr. Chuck, recommends this as a sequel to his book, for object-oriented practice, I believe, in the preface of P4E. Which is exactly what I'm getting out of it! What I noticed is that this book could be a good book for beginners, if you're not new to programming. There's nothing you cannot do. It's a dense dialectic, and seems like it was intended to be read, not skimmed. I haven't finished, so I don't know what a proper summary conclusion would be- as far as that didactic goes. Definitely has some insight, but I might have to study/take notes to remember.
- Reviewed in the United States on April 3, 2021This is a fine book for someone who wants an introduction to Python programming. I think it is good for someone who is uncertain about what Python is all about. It will definitely give the reader an indication about the language and its structure.
If you are looking to learn Python in-depth, this is not the book for you. However, if you want a survey of Python - what it can do, how it works (generally) - this is a good book.
I like the easy-to-understand language used in this book. The author does not make any assumptions about prior programming knowledge.
The book just scratches the surface of Python. It runs though a large number of topics, touching each with just enough to give the reader an understanding of the bigger picture. However, it doesn't do a deep dive on any topic in particular.
Overall, as a primer it's a great book. But be prepared to go deeper with other resources if you want to become even a good novice Python programmer.
- Reviewed in the United States on December 17, 2023I used this book as a supplement to a class I was taking in Python. It was good as a supplement, but I do worry that it would not be sufficient for someone who was only using this book or someone who had not had a bit of a background in doing some programming stuff. The exercises are also made for someone who has a decent understanding of math and personally I stopped trying the exercises after the first few chapters because of that, as well as having other problems that had been assigned to me for the course I was taking.
- Reviewed in the United States on January 18, 2024I bought this book for one of my college courses. It's a really good book. It explains the coding well and uses good examples. Bought book new and received in great condition.
- Reviewed in the United States on February 12, 2019One of the best books I've read on programming so far. It's well written, easy to understand, very affordable, and there are some extra resources available to you as well, which I found really useful.
The only caveat I would give is that this may not be the best choice for the math-averse, as many of the exercises involve dealing with math problems. I would not consider myself particularly mathematically inclined and can still get through them with some effort, and enjoy the challenge of learning something new and putting some long-unused brain cells to work, but it may be frustrating if you really hate math. There is always the option to skip exercises you don't like, of course.
I definitely recommend this book to anyone interested in programming, or wanting to learn Python, beginners included. I had a little programming experience coming in, and breezed through the first few chapters, but the exercises quickly build in difficulty so even after a few chapters, I think all but quite experienced programmers will find some that are challenging and help you build proficiency in the language.
- Reviewed in the United States on April 24, 2024This book was a lifesaver for my Python class! It really helped explain things in a clear way, but I wouldn't recommend starting here if you're a total beginner. It seemed like the book assumed you already knew some programming stuff.
The exercises were cool, but way too math-heavy for me after a while. I got slammed with other classwork too, so I ended up skipping most of them after the first few chapters. Still, a great book for brushing up on Python!
- Reviewed in the United States on September 23, 2022Very effectively teaches the basics of Python and programming methodology. I don't think I've read a better book for coding novices. If you work through this book fully, including the exercises, you can go from zero to being a decent programmer very quickly.
Top reviews from other countries
- skylonReviewed in Canada on August 25, 2020
5.0 out of 5 stars A tiny but powerful reference book.
Liked the packaging and the shape of the product.
Though I had been working with Python for a while now, I wanted a book that explained what works and why, when it comes to Python;
When following any online tutorial or solutions online , most times I noticed that - essentially although their way of working the syntax worked but none seemed to know or explain why. So, to that end - this book does the job really well.
- Howar StugardReviewed in Italy on July 31, 2021
5.0 out of 5 stars Good book
Item was as advertised.
- apnkppReviewed in Mexico on November 29, 2018
4.0 out of 5 stars A good book.
This book cover all basics of the python programming language as it attempts to develop good programming practices and skills. It is a good book to be used as reference but if you have some experience with the language and want to take your skills to a different level then you need another book.
- Joel AumedesReviewed in Spain on November 7, 2019
5.0 out of 5 stars Very good book to get started
Very well explained and organized
- rachelbee14Reviewed in Germany on January 24, 2019
5.0 out of 5 stars The book you didn't think you needed
For anyone not coming from a programming background this book is a lifesaver. The author explains concepts clearly and it is truly a joy to read