Home > Articles > Open Source > Python

A Python Reading List by Wesley Chun

Wesley J. Chun, author of Core Python Applications Programming, 3rd Edition, offers a list of his favorite Python books for everyone from complete beginners to experienced programmers.

Looking for a different subject? Take a look at a directory of all of our Developer Reading Lists.

Like this article? We recommend

Visit the Java Resource Center

In my fifteen years as a Python developer and author, one question seems to come up over and over again: "Can anyone recommend a good book on Python?" To book authors, this is pretty much a conflict-of-interest question. "Why, mine!" is what we would all say.

The problem is that there is no correct answer. The right answer depends on the reader's level and skillset, as well as the style of learning that they find most compatible. This means the best book is different for different people. As lofty as it may sound, my main goal is the good of the community. If my book is the right one for certain classes of users, that's great. If not, I'm happy to recommend others which may be a better fit.

Before we get started, I've have one comment on another popular question: Python 2 or Python 3? While Python 3 has been around for more than 3 years, many libraries and packages have been ported, and a new 3.3 release forthcoming late summer, most of the world still runs on Python 2. If you have no old software to port and are getting into Python now, you can start with 3.x.  If you have existing code that still runs under 2.x, start there, because the changes are mostly cosmetic (albeit backwards-incompatible). Once you learn one, you can get up-to-speed with the other quickly. Now let's get reading!

In this article, I'll go over three different reading lists for three different audiences. The first audience is existing programmers who need to learn Python.

For Programmers New to Python




Dive Into Python Dive into Python 3 by Mark Pilgrim, Apress, 2009

One of the most popular Python books has been Dive into Python. Originally published in 2004, a new version for Python 3 was published in 2009. For developers who prefer to learn by just diving into code, this is one of your top choices, even more so since the author is one of my co-workers! However, if you prefer to learn a lot more before venturing into programming, there are other options for you..

Core Python Programming Core Python Programming by Wesley Chun, Prentice Hall, 2006

Core Python Programming is pretty much the opposite of Dive into Python. Instead of a "quick dive," I would call it a deep dive into the Python language. The goal of this book is to teach you Python as quickly but as comprehensively as possible. There are plenty of code samples to look at and try during your reading, so you don't have to read that much before getting started. Even better are the exercises at the end of every chapter to help you put what you learned into practice. Furthermore, a healthy dose of charts and tables provides reference material for readers. In 2009, I added two new appendices on Python 2.6 (also applicable for 2.7) and 3.x to keep the book contemporary. These appendices are available in the 5th and newer printings. All other readers can download both appendices as well as a cleaned up index on the book's Web site at corepython.com.

Quick Python Book The Quick Python Book second edition by Naomi Ceder, Manning, 2010

The Quick Python Book is similar to Dive into Python, but originally published well before the latter except that it goes into a bit more detail than Dive. Its reviews are just as good as its newer brother. A few years ago, it was updated to Python 3.



The Beginning Python BookBeginning Python: From Novice to Professional second edition by Magnus Lie Hetland, Apress, 2008

The Beginning Python book also goes more into detail than Apress' fellow book, Dive into Python. It is very readable and user-friendly; however, like the Quick Python Book, it doesn't dive in as deeply as Core Python Programming. It's just right in the middle and thus could be your cup of tea. There's even a companion Web site for the book.

Learn Python the Hard WayLearn Python the Hard Way third edition by Zed Shaw, 2013

This series takes a completely different approach: the author forces you to code and code correctly, then explains what you did and why. But since you already had to experience it, you pick up programming skills more quickly. This book is also suitable for those who have never programmed before, and is "brutally-friendly" for these readers.

For Kids and Other Complete Beginners

This is where our next list comes in: a list of Python books for those who have never programmed before, including children; hence the name of the list.



These books are often used to teach children how to program because they involve using Python to write game programs. What could be more fun than that?

Hello World!Hello World! Computer Programming for Kids and Other Beginners second edition by Warren Sande and Carter Sande, Manning, 2013

One of the top-selling child-friendly books is written by an engineer and his (then) 8-year old son, so the writing also contains dialog from a kid's perspective. The juxtaposition of these differing dialogs and perspectives makes for family-friendly reading.

Invent PythonInvent your Own Computer Games with Python second edition by Al Sweigart, 2010

Another beginner book with great reviews is Invent your Own Computer Games with Python. Like Hello World!, you learn to code by writing games, but the book also assumes readers have absolutely no programming experience whatsoever and walks them through the concepts as well as building games.

Python for Software DesignPython for Software Design: How to Think Like a Computer Scientist by Allen B. Downey, Jeff Elkner and Chris Meyers, Green Tea Press, 2002

This book is one of the classics. Originally created for C++, it was ported to Java, then Python. While the first books in the list are great for upper elementary and junior high age on average, this book is geared toward teenagers in high school or non-science/engineering collegiate students. In addition to learning programming, readers will also pick up concepts from the study of Computer Science.

Python Programming for the Absolute BeginnerPython Programming for the Absolute Beginner third edition by Michael Dawson, Course Technology, 2010

This is the original newbie book. It teaches readers to code by writing games. It has remained fairly popular, as there wasn't anything like it when it was first published. It still gets good reviews, even the latest edition that's been revised to Python 3.

Hello World!Python for Kids by Jason R. Briggs, No Starch Press, 2012

This newer entry to the beginners' section is based on the long-time and highly popular "Snake Wrangling for Kids" tutorial. It originally started as an electronic book but a complete rewrite, updates, and new material all collide in Python for Kids.




References

The final list of books to look at are the references--those companion tomes that you should also have on your shelf. The best ones are those that you can just pull off the shelf, look up something, then put away.



Python Essential Reference Python Essential Reference fourth edition by David Beazley, Addison-Wesley, 2009

The first book in this list is the classic "PER" (Python Essential Reference). It was the very first one (at least its original edition was). Back in the Python 1.5 days, the only real reference Python programmers had was the Standard Library Reference online documentation. Printing it out was enormous: about an inch thick double-sided! Developers craved a "library reference to take home." Python Essential Reference alleviated that need and represented exactly that: a small, portable version of the library reference. It has since been updated regularly by jazz musician and mad (computer) scientist, David Beazley.

Python  in a NutshellPython in a Nutshell second edition by Alex Martelli, O'Reilly, 2006       
Several years later, a second reference book came out, this one from O'Reilly as part of their classic Nutshell reference series written by the incomparable Alex Martelli, another co-worker of mine. Both the Nutshell and PER references are written by luminaries in the Python world, and both books are similar. The best suggestion I can offer you is to flip through several pages of both and find which writing style suits you best.

Python  CookbookPython Cookbook third edition by David Beazley and Brian K. Jones, O'Reilly, 2013

The final two books are not references as much as the first two, but they are still references to consider if you want to go beyond the pure lookup reference guides. This book is based on the online Python Cookbook, a series of "recipes" that are Python snippets of code that "do something." You can find all the recipes here at http://code.activestate.com/recipes/langs/python, but the book contains "the best" ones, plus additional commentary by the editors.

Python  Standard Library by Example Python Standard Library by Example by Doug Hellmann, Addison-Wesley, 2011

If you can imagine one of the earlier references along with many more code samples, you'll arrive here. Rather than covering every single module and package in the standard library, this book takes the most popular ones that are used by developers today. It is based on the popular blog series, PyMotW (Python Module of the Week), maintained by the author himself.

The Next Step

What do you do after you've learned Python? You may have read my book or others like Dive into Python, Beginning Python, or Learning Python and have written some basic tools/apps. However, to go to the next level, you have nowhere to turn other than dive deeply into specific topics with books about game programming, databases, graphics/multimedia, GUIs, scientific programming, networking, etc.

There are definitely books on advanced topics such as these and more, don't get me wrong. But if you want to develop more than one of these skills, you'd have to buy a book on every topic of interest. This is overkill, especially if you're only looking to expand your skillset. In that case, you’ll want to reach for this book:

Core Python  Applications ProgrammingCore Python Applications Programming by Wesley Chun, Prentice Hall, 2012

Those of you who have read Core Python Programming will recognize much of the material in this book, because it comes from Part II of Core Python Programming. In the original book, I felt I had done a good enough job of teaching Python to readers, but didn't have the room to get into any details about what you could build with it. Now that that material has expanded beyond the borders of an introductory book, it was time to split out this intermediate/advanced material into its own volume.

Thus I am pleased to announce that those chapters have been extracted to form their own book, Core Python Applications Programming! The contents have been cleaned up and retrofitted with Python 3 examples paired w/their 2.x friends as a hybrid to help you learn both 2.x & 3.x. There is plenty of new material added to existing chapters, as well as completely brand new ones on Web framework development using Django, an introduction to cloud computing with Google App Engine, and text processing with CSV, JSON, and XML. The purpose is to provide comprehensive introductions to each of these areas of application development, hence the title. I hope you are as excited about the new book as I am!

Missing Lists?

As some astute readers have noticed, I'm missing one or two lists I would have liked to include. One is a list of advanced Python books. This category is, unfortunately, pretty small as there are just a handful of them, including Expert Python Programming and Pro Python. Which of these two or other advanced books have you read, which have you liked and why? The other missing list I'd like to consider is that for scientific computing in Python. Send me your favorites and why. I can be reached via Google+ (+wescpy) or Twitter (@wescpy).

Conclusion

Now that you've seen a variety of ways to address that question of which book with the possible correct answer, we hope that you're able to use this article to get the right Python book(s) for you. While I hope you find that my books best fit your needs, I'm more happy that you get what you need to build great applications in Python. If you're new to Python, welcome to our family!

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email [email protected].

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at [email protected] and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to [email protected].

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020