Text of realpython.com › best-python-books as Styx crawled it on Nov 20, 2026. The page may have changed since. Only its words are kept, without pictures or layout, and only the first part of a long page.

Open the live page

The Best Python Books – Real Python

The Best Python Books by Real Python Updated Sep 10, 2018 Reading time estimate 36m basics intermediate career community Table of Contents Remove ads In this article, we highlight the best books for learning Python through a collection of book reviews. Each review gives you a taste of the book, the topics covered, and the context used to illustrate those topics. Different books will resonate with different people, depending on the style and presentation of the books, the readers’ backgrounds, as well as other factors.

Python is an amazing programming language. It can be applied to almost any programming task, allows for rapid development and debugging, and brings the support of what is arguably the most welcoming user community. Getting started with Python is like learning any new skill: it’s important to find a resource you connect with to guide your learning. Luckily, there’s no shortage of excellent books that can help you learn both the basic concepts of programming and the specifics of programming in Python.

With the abundance of resources, it can be difficult to identify which book would be best for your situation. If you are new to Python, any of the introductory books will give you a solid foundation in the basics. Perhaps you want to learn Python with your kid, or maybe teach Python to a group of kids. Check out the Best Python Books for Kids for resources aimed at a younger audience. As you progress in you Python journey, you will want to dig deeper to maximize the efficiency of your code.

The best intermediate and advanced Python books provide insight to help you level up your Python skills, enabling you to become an expert Pythonista. After reading these reviews, if you still are not sure which book to choose, publishers often provide a sample chapter or section to give you an example of what the book offers. Reading a sample of the book should give you the most representative picture of the author’s pace, style, and expectations.

Regardless of which book most stands out, consider this anecdote from one of our book reviewers, Steven C. Howell: “A favorite professor once told me, ‘It doesn’t matter which book you read first. It’s always the second one that makes the most sense.’ I can’t say this has always been the case for me, but I’ve definitely found that a second reference can make all the difference when the first left me puzzled or frustrated.

When learning Python classes, I had difficulty relating to the examples used in the first two books I picked up. It wasn’t until the third book I referred to that the concepts started to click. The important lesson is that if you get stuck or frustrated, and the resources you have are not helping, then don’t give up. Look at another book, search the web, ask on a forum, or just take a break.” Note: This article contains affiliate links to retailers like Amazon, so you can support Real Python by clicking through and making a purchase on some of the links.

Purchasing from one of these links adds no extra cost to you. Affiliate links never influence our editorial decisions in any way. Best Books for Learning Python If you are new to Python, you are likely in one of the following two situations: You are new to programming and want to start by learning Python. You have a reasonable amount of programming experience in another language and now want to learn Python. This section focuses on the first of these two scenarios, with reviews of the books we consider to be the best Python programming books for readers who are new to both programming and Python.

Accordingly, these books require no previous programming experience. They start from the absolute basics and teach both general programming concepts as well as how they apply to Python. Note: If you’re looking for the best Python books for experienced programmers , consider the following selection of books with full reviews in the intro and advanced sections: Think Python : The most basic of this list, Think Python provides a comprehensive Python reference.

Fluent Python : While Python’s simplicity lets you quickly start coding, this book teaches you how to write idiomatic Python code, while going into several deep topics of the language. Effective Python: 59 Ways to Write Better Python : This relatively short book is a collection of 59 articles that, similarly to Fluent Python , focus on teaching you how to write truly Pythonic code. Python Cookbook : As a cookbook, this will be a good reference on how to use Python to complete tasks you have done in another language.

Alternatively, you may even prefer to go directly to the official Python Tutorial , a well-written and thorough resource. Remove ads Python Crash Course Eric Matthes (No Starch Press, 2016) It does what it says on the tin, and it does it really well. The book starts out with a walkthrough of the basic Python elements and data structures, working through variables, strings, numbers, lists, and tuples, outlining how you work with each of them.

Next, if statements and logical tests are covered, followed by a dive into dictionaries. After that, the book covers user input, while loops , functions, classes, and file handling, as well as code testing and debugging. That’s just the first half of the book! In the second half, you work on three major projects, creating some clever, fun applications. The first project is an Alien Invasion game, essentially Space Invaders, developed using the pygame package.

You design a ship (using classes), then program how to pilot it and make it fire bullets. Then, you design several classes of aliens, make the alien fleet move, and make it possible to shoot them down. Finally, you add a scoreboard and a list of high scores to complete the game. After that, the next project covers data visualization with matplotlib , random walks, rolling dice, and a little bit of statistical analysis, creating graphs and charts with the pygal package.

You learn how to download data in a variety of formats, import it into Python, and visualize the results, as well as how to interact with web APIs, retrieving and visualizing data from GitHub and HackerNews. The third project walks you through the creation of a complete web application using Django to set up a Learning Log to track what users have been studying. It covers how to install Django, set up a project, design your models, create an admin interface, set up user accounts, manage access controls on a per-user basis, style your entire app with Bootstrap, and then finally deploy it to Heroku.

This book is well written and nicely organized. It presents a large number of useful exercises as well as three challenging and entertaining projects that make up the second half of the book. (Reviewed by David Schlesinger.) View On Amazon » View On Publisher Website » Head-First Python, 2nd edition Paul Barry (O’Reilly, 2016) I really like the Head-First series of books, although they’re admittedly lighter weight in overall content than many of the other recommendations in this section.

The trade-off is the that this approach makes the book more user-friendly. If you’re the kind of person who likes to learn things one small, fairly self-contained chunk at a time, and you want to have lots of concrete examples and illustrations of the concepts involved, then the Head-First series is for you. The publisher’s website has the following to say about their approach: “Based on the latest research in cognitive science and learning theory, Head-First Python uses a visually rich format to engage your mind, rather than a text-heavy approach that puts you to sleep.

Why waste your time struggling with new concepts? This multi-sensory learning experience is designed for the way your brain really works.” (Source) Chock full of illustrations, examples, asides, and other tidbits, Head-First Python is consistently engaging and easy to read. This book starts its tour of Python by diving into lists and expl

The rest of this page is on the live site.