Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


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 one step at a time, beginning with basic programming concepts before moving on to functions, recursion, data structures, and object-oriented design. Through exercises in each chapter, you’ll try out programming concepts as you learn them.

Subscriber Reviews

Average Rating: 4.285714285714286 out of 5 rating Based on 7 Ratings

"Think Python" - by jsonsini on 22-NOV-2013
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
My original intent with this book was to learn various strategies/design patterns unique to python such as how best to use tuple assignment and list comprehensions but the book is aimed at more junior programmers.  The first six to eight chapters will be extremely boring to anyone with experience in another language, then as it becomes more advanced subtle details about the basic structures like lists and dictionaries are presented throughout this section which offer helpful supplementary information beyond just the default usage of these objects.  Towards the end the pace increases further and I would have benefited from more than one chapter giving an overview of the graphical capabilities, the material at this point lacks the detail found in the previous chapters and introduces multiple diverse concepts on each page leading to a less organized walkthrough.  On a positive note the text is very clear, highlighting keywords in context and providing a glossary at the end of each chapter for review.  Most of the code samples detail the structures mentioned in the surrounding text but there is significant chaining together of the examples as the book progresses with some references used several chapters after they originally appear.  I would recommend this book for someone new to programming and wanting to start out with a language that simplifies most tasks with built in functions for collection based structures and the option to favor either script based or object oriented style development.
Report as Inappropriate

"Ok Book" - by Ambience on 29-NOV-2012
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
It's a nice beginner book but Mark Lutz' "Learning Python" is a much much better and more in depth.

Report as Inappropriate

"simple but quick to review" - by Walid Shaari on 29-AUG-2012
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
good intro and quick review to the basics of python within the computer science boundaries. with lots of exercises to enforce the things you have just gone over
Report as Inappropriate

"The best book for python ever!!!" - by Kishan B on 23-AUG-2012
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
Best book on python!! I never felt even a bit of boredom while
reading this book!! It was like watching
"Prison break" series.. I couldn't stop reading!!  

Report as Inappropriate

Table of Contents



The publisher has provided additional content related to this title.


Visit the catalog page for Think Python

  • Catalog Page

Visit the errata page for Think Python

  • Errata