23 books directly related to python 📚

All 23 python books as recommended by authors and experts. Updated weekly.

Book cover of Python Distilled

Python Distilled

By David Beazley

Why this book?

Dave is the best teacher of programming and how programming languages (and Python specifically) work that I’ve ever met. He has a knack for making explanations of tough concepts seem clear, and he is very good at focusing on what’s essential to using a coding technique or structure and how to write good code. Like all of Dave’s books, the stuff in here just makes sense.

From the list:

The best books to level up your Python skills

When you buy a book we may earn a small commission.

Book cover of Cleaning Data for Effective Data Science: Doing the other 80% of the work with Python, R, and command-line tools

Cleaning Data for Effective Data Science: Doing the other 80% of the work with Python, R, and command-line tools

By David Mertz

Why this book?

I like this book not just because it’s a complete guide to the many ins and outs of data cleaning with Python, but also because David lays out the types of problems and the issues behind them. There are always trade-offs in data cleaning and this book lays out those trade-offs better than any other I’ve seen. This is one of the few books that as I go through it, I struggle to think of anything that could have been said better. 

From the list:

The best books to level up your Python skills

When you buy a book we may earn a small commission.

Book cover of Beyond the Basic Stuff with Python: Best Practices for Writing Clean Code

Beyond the Basic Stuff with Python: Best Practices for Writing Clean Code

By Al Sweigart

Why this book?

Al is one of the clearest writers on Python that I know. Here he distills his experience as both a working software engineer and a successful author to take coders from advanced beginner/intermediate level on to all of the “extra” knowledge one needs to write good code for practical use. When I read this book I find myself wishing I could write with such simplicity.

From the list:

The best books to level up your Python skills

When you buy a book we may earn a small commission.

Book cover of Mission Python: Code a Space Adventure Game!

Mission Python: Code a Space Adventure Game!

By Sean McManus

Why this book?

Learning how to program in Python and make a video game at the same time. Hmm – sounds like learning your native language while writing a novel. That could be messy. Could be – but not with this book. McManus knows video games. McManus knows how to teach. I love the idea of teaching a programming language through one extended context. If, like me, you’re fascinated by retro video games, get this book and let that fascination propel you through your beginning programming journey. Bonus feature: commitment to the bit; everything is in space!

From the list:

The best books for a rock solid python programming foundation

When you buy a book we may earn a small commission.

Book cover of Python for Everybody: Exploring Data in Python 3

Python for Everybody: Exploring Data in Python 3

By Charles R. Severance

Why this book?

Learning to program is hard. We need teachers who remember this, who are patient, who support the learning process, who not only know how to teach but also know how to learn from their teaching. Severance is all of these things. I like the breezy but precise writing, sections on debugging, glossaries and exercises in each chapter, and discussion of common learner errors. Bonus feature: regular expressions.

From the list:

The best books for a rock solid python programming foundation

When you buy a book we may earn a small commission.

Book cover of Hello World! A Complete Python-Based Computer Programming Tutorial with Fun Illustrations, Examples, and Hand-On Exercises.

Hello World! A Complete Python-Based Computer Programming Tutorial with Fun Illustrations, Examples, and Hand-On Exercises.

By Warren Sande, Carter Sande

Why this book?

I’m a kid at heart. (My favourite book genre is middle grade fiction.) Don’t be put off by a book with "kids" in the subtitle. And what an ebullient book this is! I unapologetically laugh at this book’s humour. I like the short chapters with measurable progress in each one; I like the easy GUI programming to get us started; I like the computational study of probability and randomness. I could quibble over the order that some topics are introduced, and some of the forward references… but, you know what? I won’t. This author duo gets it. Bonus feature: that…

From the list:

The best books for a rock solid python programming foundation

When you buy a book we may earn a small commission.

Book cover of Get Programming: Learn to Code with Python

Get Programming: Learn to Code with Python

By Ana Bell

Why this book?

Bell is an expert teacher. I like the order of topics; the breakdown of topics into units; the short, targeted lessons in each unit; the varied capstone projects to tie things together; the explicit learning goals; the structured approach to solving problems. The first bit of code that you’ll write is on page 30. Your first complete program is on page 60. What’s up with those first 59 pages, then? Motivation, comparisons to daily life, setup, and building blocks. Things that other authors tend to skip but that may be important for some learners. Bonus feature: “I try not to…

From the list:

The best books for a rock solid python programming foundation

When you buy a book we may earn a small commission.

Book cover of Python for Everyone

Python for Everyone

By Cay S. Horstmann, Rance D. Necaise

Why this book?

I used this book for several years starting in 2013 when the first edition came out. It absolutely holds up today. Learning the Python language (the syntax) is one thing. Learning how to design programs using this syntax is another. We need both but, unfortunately, many books forgo the latter for the former. Not this book! I like the Problem Solving and Worked Example sections: they help learners apply a disciplined, step-by-step strategy to programming projects. There are multiple, varied contexts here as well, which helps capture a broader base of learners. Bonus feature: the Computing & Society boxes.

From the list:

The best books for a rock solid python programming foundation

When you buy a book we may earn a small commission.

Book cover of Django for Beginners: Build Websites with Python and Django

Django for Beginners: Build Websites with Python and Django

By William S. Vincent

Why this book?

A beginner-friendly book with very clear writing. Vincent has several books on Django aimed at different levels of expertise. This one has a clear and instructional approach to building simple web applications. It is a little light on concepts and explanation of the requirements, probably intentionally, for which you can rely on other books.

From the list:

The best books on Django for building solid web apps in Python

When you buy a book we may earn a small commission.

Book cover of High Performance Django

High Performance Django

By Peter Baumgartner, Yann Malet

Why this book?

Building scalable and performant web applications is both an art and a science. This book focused on such techniques and hence goes beyond what most books on Django try to cover. Anyone running a Django site under heavy load will definitely learn a few tips from this book. However, it is light on explanations and expects you to figure out many things from reading the examples.

From the list:

The best books on Django for building solid web apps in Python

When you buy a book we may earn a small commission.

Book cover of Python Testing with Pytest: Simple, Rapid, Effective, and Scalable

Python Testing with Pytest: Simple, Rapid, Effective, and Scalable

By Brian Okken

Why this book?

While this is a Python-specific book, it’s a fantastic description of all the possibilities for testing with a powerful module like Pytest offers. Testing is one of the basic experiences for a programmer, as it should be included as a core part of the development process. Understanding all the different options available like mark groups of tests, parametric tests, building your own extensions, or test coverage, to name only a few details, expands the understanding of how to design better tests and run them more efficiently.

From the list:

The best books for the Python and non-Python developers

When you buy a book we may earn a small commission.

Book cover of The Pragmatic Programmer: Your Journey to Mastery

The Pragmatic Programmer: Your Journey to Mastery

By David Thomas, Andrew Hunt

Why this book?

A full collection of self-reflecting ideas about how to approach coding from a strategic point of view. While some of it can be a bit obvious for the experienced developer, it can be invaluable for the newcomer and it’s always great to solidify knowledge in a more consistent way. The kind of book that you can read again after a few years and keep learning.

From the list:

The best books for the Python and non-Python developers

When you buy a book we may earn a small commission.

Book cover of Fluent Python: Clear, Concise, and Effective Programming

Fluent Python: Clear, Concise, and Effective Programming

By Luciano Ramalho

Why this book?

Luciano’s book is one of the most complete discussions of the ins and outs of Python that I’ve seen. He is fascinated by coding in general and it comes across as he explores the ways Python is similar to (and different from) other language paradigms. This is the book I take out if I’m starting to dig in and explore a feature of Python, and if you want to understand the details beneath the details, this is the book for you. 

From the list:

The best books to level up your Python skills

When you buy a book we may earn a small commission.

Book cover of Practices of the Python Pro

Practices of the Python Pro

By Dane Hillard

Why this book?

Dane covers the more advanced topics a programmer needs to be successful as a professional. In particular, he has good discussions of the basics of software design – things like separation of concerns, encapsulation, testing, and performance, as well as some of the issues involved with creating and maintaining large-scale systems. This is the book that I wish I’d had early in my coding career. 

From the list:

The best books to level up your Python skills

When you buy a book we may earn a small commission.

Book cover of Introduction to Machine Learning with Python: A Guide for Data Scientists

Introduction to Machine Learning with Python: A Guide for Data Scientists

By Andreas C. Müller, Sarah Guido

Why this book?

This book is more advanced than the first book I recommended. It presents ML theoretical and practical aspects step-by-step from the bottom up. Each chapter elaborates at length on a core building block in the ML life cycle. For example, feature engineering, supervised learning, and model evaluation have their own separate chapters, with intuitive discussions of how they work. Most of the concept is taught through the simple yet powerful Python Module Scikit-Learn so it won’t overburden you with heavy programming. This book will be perfect for practitioners with some understanding of statistics and linear algebra.

From the list:

The best books about machine learning for beginners

When you buy a book we may earn a small commission.

Book cover of Two Scoops of Django: Best Practices for the Django Web Framework 1st Edition

Two Scoops of Django: Best Practices for the Django Web Framework 1st Edition

By Daniel Roy Greenfeld, Audrey Roy Greenfeld

Why this book?

Two Scoops is the bible of Django development. It has the most detailed coverage of the Django web framework including best practices and tips. The book has a delightful ice cream-based theme including delightful illustrations. There are several editions of this book so make sure you have the latest one. Overall a valuable reference. However, this book might be daunting for an absolute beginner.

From the list:

The best books on Django for building solid web apps in Python

When you buy a book we may earn a small commission.

Book cover of Mastering Django

Mastering Django

By Nigel George

Why this book?

Another book with a detailed coverage of the Django web framework. This is a revised book written originally by Adrian Holovaty and Jacob Kaplan-Moss—the creators of Django themselves. Hence the initial chapters are an excellent in-depth description of how Django works. The remaining parts of the books go into intermediate and advanced topics.

From the list:

The best books on Django for building solid web apps in Python

When you buy a book we may earn a small commission.

Book cover of The Mythical Man-Month: Essays on Software Engineering

The Mythical Man-Month: Essays on Software Engineering

By Frederick P. Brooks Jr

Why this book?

In the 1970s, Brooks was the leading thinker on managing large software projects in the world, and unexpected delays in completing complex coding tasks were emerging as a costly headache for large organizations. Brooks was considered a software luminary within IBM, which dominated the digital world in the era before the advent of the personal computer.

“In many ways, managing a large computer programming project is like managing any other large undertaking, but in many other ways it is different – in more ways than most professional managers expect,” Brooks dryly declared in the opening lines of a book destined…

From the list:

The best books on the human dimension of writing computer code

When you buy a book we may earn a small commission.

Book cover of Practical Vim: Edit Text at the Speed of Thought (Pragmatic Programmers)

Practical Vim: Edit Text at the Speed of Thought (Pragmatic Programmers)

By Drew Neil

Why this book?

A very personal recommendation, as it is about Vim, a very particular text editor that can be difficult to learn at first, but this is the best technical book that I’ve ever read. I use Vim as my main editor and this book makes an astonishing job in clearly explaining why it works the way it works. This book gets you into the proper mindset to use Vim, making it click internally and from there on, to feel way more natural and powerful. Even if you don’t want to use Vim as your main editor, it’s ubiquitous and it’s available…

From the list:

The best books for the Python and non-Python developers

When you buy a book we may earn a small commission.

Book cover of Managing Humans: Biting and Humorous Tales of a Software Engineering Manager

Managing Humans: Biting and Humorous Tales of a Software Engineering Manager

By Michael Lopp

Why this book?

Michael Lopp, or Rands, as he is commonly known online, has been sharing his knowledge as a software manager for years, mainly through his blog. He is one of the most insightful voices about the art of management in a software environment, and even if you are not a manager yourself (and don’t want to become one), will make you understand and better collaborate with your own manager, and be ready when you need to lead a team or understand how it is to work with other humans.

From the list:

The best books for the Python and non-Python developers

When you buy a book we may earn a small commission.

Book cover of Deep Learning with Python

Deep Learning with Python

By Francois Chollet

Why this book?

This is a fantastic book to get you started. It is written by the author of a leading deep learning framework Keras, which makes even Tensorflow very easy to use. Chollet is a true leader of the deep learning craft and the Manning team always does an excellent job of forcing authors to make the subject matter accessible. Highly recommended!

From the list:

The best books about applied deep learning

When you buy a book we may earn a small commission.

Book cover of Lightweight Django: Using REST, WebSockets, and Backbone

Lightweight Django: Using REST, WebSockets, and Backbone

By Julia Elman, Mark Lavin

Why this book?

This is a very well-written book that covers some less covered areas like how to write the most minimal Django application or integrating with Tornado server. The book is short and quite engaging. This is not exactly a book for an impatient beginner as it takes time to build the concepts. Also, the book might be a bit dated since it was last updated in 2014.

From the list:

The best books on Django for building solid web apps in Python

When you buy a book we may earn a small commission.

Book cover of Designing Secure Software: A Guide for Developers

Designing Secure Software: A Guide for Developers

By Loren Kohnfelder

Why this book?

Loren’s been contributing to security for over 40 years, and this book captures his hard-won wisdom in a way that’s both humble and accessible. It scales from principles and design approaches to in-depth explanations of exactly how things go wrong and how to avoid those problems. (Also, I was honored to write the foreword.)

From the list:

The best application security books for builders

When you buy a book we may earn a small commission.