Python books free to read online or download
![Free Python Books project logo](https://github.com/pamoroso/free-python-books/blob/master/free-python-books-logo.jpg)

# Free Python Books

A list of Python books in English that are free to read online or download.

## Table of Contents

- [How the list got started](#how-the-list-got-started)
- [What's in the list](#whats-in-the-list)
- [Why free books?](#why-free-books)
- [Acknowledgments](#acknowledgments)
- [How to contribute](#how-to-contribute)
- [List of free Python books](#list-of-free-python-books)
  - [Introductory](#introductory)
  - [Intermediate](#intermediate)
  - [Advanced](#advanced)
  - [AI and Machine Learning](#ai-and-machine-learning)
  - [Computer Science](#computer-science)
  - [Software Engineering and best practices](#software-engineering-and-best-practices)
  - [GUI](#gui)
  - [Tools](#tools)
  - [Web development](#web-development)
  - [Data science](#data-science)
  - [Science](#science)
  - [Jupyter Notebook](#jupyter-notebook)
  - [Engineering](#engineering)
  - [Cryptography](#cryptography)
  - [Games](#games)
- [Lists of free Python books](#lists-of-free-python-books)
- [License](#license)

## How the list got started

I had been learning Python for a few weeks when, in January, 2019, I stumbled upon [a Reddit post in r/learnpython](https://www.reddit.com/r/learnpython/comments/amyryp/what_would_you_suggest_a_person_new_to/) seeking suggestions on how to become a better programmer.

[One of the comments](https://www.reddit.com/r/learnpython/comments/amyryp/what_would_you_suggest_a_person_new_to/efps9cs/) asked for good books or websites about algorithms and data structures. I had collected links to useful Python learning resources among which the free ebook [Problem Solving with Algorithms and Data Structures using Python](https://interactivepython.org/runestone/static/pythonds/index.html#problem-solving-with-algorithms-and-data-structures-using-python), so I [shared the link in a comment](https://www.reddit.com/r/learnpython/comments/amyryp/what_would_you_suggest_a_person_new_to/efpvm1n/).

My comment got a couple dozen upvotes, which hinted at the interest in good, easily accessible Python books. Therefore I later put together a list of all the free Python books I had found and [posted it to r/Python](https://www.reddit.com/r/Python/comments/anfdyh/free_python_books/).

I was right. My post got hundreds of upvotes and several redditors contributed links to more books and lists, thus confirming the interest in such a resource. The next step was to make my list more useful and widely available by integrating it with the suggestions I got in the Reddit post, publishing it to GitHub, and expanding it with more books.

It's the list you're reading now.

## What's in the list

This list includes the entries I originally posted to Reddit, the books and other lists suggested in the comments, a few more I found since then, and any I'll discover.

What's a free Python book?

My definition is fuzzy and necessarily subjective. But I'd say it's an ebook file, a book-length document, or a website structured like a book that is about Python, is written in English, and can be read online or downloaded for free. Most short online tutorials and how-to pages probably don't qualify.

But in the end I recognize a free Python book when I see one.

The entries are grouped by category or application domain and include coverage at all skill levels, from basic to advanced. Within categories the entries are sorted alphabetically by title.

Some redditors shared links to other list of free programming books, some of which are about Python. I've included them too but there's of course some overlap with mine.

## Why free books?

I don't mind paid content. In fact, I also purchased great paid Python ebooks and online resources and I'm going to get more.

However, free ebooks have several advantages such as often coming in additional handy or downloadable formats. It's also easier to get books on topics you may be interested in but don't have an immediate need for.

## Acknowledgments

Thanks to the redditors who contributed book suggestions and links in [my original post](https://www.reddit.com/r/Python/comments/anfdyh/free_python_books/): AlSweigart, ASIC_SP, Bisalsn, bitcoin-dude, code_x_7777m isakar-elahim, lask757, mfitzp, pvc, warbird2k.

## How to contribute

If you have books to suggest you can do a pull request or create an issue. Creating an issue is also a good way of providing other feedback.

Thanks!

## List of free Python books

### Introductory

- [100 Page Python Intro](https://learnbyexample.github.io/100_page_python_intro)
- [A Byte of Python](https://python.swaroopch.com)
- [An Introduction to Python for Linguists](https://v4py.github.io/intro.html)
- [Code With Repl.it: Python Projects for Beginners](https://www.codewithrepl.it/python-projects-for-beginners.html)
- [Exploring Python Basics](https://www.manning.com/books/exploring-python-basics)
- [Full Speed Python](https://github.com/joaoventura/full-speed-python)
- [How To Code in Python](https://www.digitalocean.com/community/books/digitalocean-ebook-how-to-code-in-python)
- [Learn Python the Right Way](https://learnpythontherightway.com)
- [Non-Programmer's Tutorial for Python 3](https://en.wikibooks.org/wiki/Non-Programmer%27s_Tutorial_for_Python_3)
- [Python 101](https://python101.pythonlibrary.org/)
- [Slither Into Python](https://www.slitherintopython.com)
- [The Python Coding Book: Understanding what programming really is](https://thepythoncodingbook.com)

### Intermediate

- [Boxes: Your Second Python Book](http://ralsina.gitlab.io/boxes-book/)
- [Intermediate Python](https://leanpub.com/intermediatepython)
- [Python re(gex)?](https://learnbyexample.github.io/py_regular_expressions/)
- [Python Tips: Intermediate Python](http://book.pythontips.com/en/latest/index.html)

### Advanced

- [A Python Book: Beginning Python, Advanced Python, and Python Exercises](http://www.davekuhlman.org/python_book_01.html)
- [Python 3 Patterns, Recipes and Idioms](https://python-3-patterns-idioms-test.readthedocs.io/en/latest/index.html)
- [Python Notes for Professionals](https://goalkicker.com/PythonBook/)

### AI and Machine Learning

- [Machine Learning from Scratch: Derivations in Concept and Code](https://dafriedman97.github.io/mlbook/content/introduction.html)
- [Natural Language Processing with Python](http://www.nltk.org/book/)
- [Neural Networks and Deep Learning](http://neuralnetworksanddeeplearning.com/)
- [Probabilistic Programming & Bayesian Methods for Hackers](http://camdavidsonpilon.github.io/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers/)

### Computer Science

- [Annotated Algorithms in Python - With applications in Physics, Biology, and Finance](https://github.com/mdipierro/nlib)
- [Data Structures and Information Retrieval in Python](https://allendowney.github.io/DSIRP)
- [How to Think Like a Computer Scientist: Interactive Edition](https://interactivepython.org/courselib/static/thinkcspy/index.html)
- [Problem Solving with Algorithms and Data Structures using Python](https://interactivepython.org/runestone/static/pythonds/index.html#problem-solving-with-algorithms-and-data-structures-using-python)
- [Think Python: How to Think Like a Computer Scientist](https://greenteapress.com/wp/think-python-2e/)

### Software Engineering and best practices

- [Architecture Patterns with Python: Enabling Test-Driven Development, Domain-Driven Design, and Event-Driven Microservices](https://www.cosmicpython.com/)
- [Clean Architectures in Python: A practical approach to better software design](https://leanpub.com/clean-architectures-in-python)
- [Object Oriented Programming with Python: Learn essentials of OOP with Python 3](https://leanpub.com/PythonOOP)
- [Python Packages](https://py-pkgs.org/)
- [Test-Driven Development with Python](https://www.obeythetestinggoat.com/pages/book.html)
- [The Hitchhiker’s Guide to Python!](https://docs.python-guide.org/)
- [The Little Book of Python Anti-Patterns](https://docs.quantifiedcode.com/python-anti-patterns/)

### GUI

- [Create Simple GUI Applications](https://leanpub.com/create-simple-gui-applications/read)

### Tools

- [Automate the Boring Stuff with Python](https://automatetheboringstuff.com/)
- [Practical Python Projects](https://practicalpython.yasoob.me/toc.html)

### Web development

- [Create a Simple Flask Application with Cloud9, Heroku and MongoDB](https://leanpub.com/flask-cloud9-heroku-mongodb-ebook)
- [Zero to production web apps](https://pgjones.gitlab.io/zero-to-production-book/introduction/)

### Data science

- [Data Science in Production: Building Scalable Model Pipelines with Python](https://www.amazon.com/dp/B083H2YWP4)
- [Effective Pandas](https://leanpub.com/effective-pandas)
- [Python Data Science Handbook](https://jakevdp.github.io/PythonDataScienceHandbook/)
- [Python for Everybody: Exploring Data In Python 3](https://py4e.com/book.php)

### Science

- [Getting Started With Python In The Lab: An Introductory Python Tutorial For Life Scientists](https://leanpub.com/gettingstartedwithpythoninthelab)
- [Python for Astronomers: An Introduction to Scientific Computing](https://prappleizer.github.io/)
- [Python & OpenGL for Scientific Visualization](https://www.labri.fr/perso/nrougier/python-opengl/)
- [Python for Scientists and Engineers](https://www.pythonforengineers.com/python-for-scientists-and-engineers/)
- [Scientific Visualization: Python + Matplotlib](https://www.labri.fr/perso/nrougier/scientific-visualization.html)
- [Think Complexity](https://greenteapress.com/complexity2/html/index.html)

### Jupyter Notebook

- [Teaching and Learning with Jupyter](https://jupyter4edu.github.io/jupyter-edu-book/)

### Engineering

- [PySDR: A Guide to SDR and DSP using Python](https://pysdr.org)
- [Python for network engineers](https://pyneng.readthedocs.io/en/latest)
- [Think DSP: Digital Signal Processing in Python](https://github.com/AllenDowney/ThinkDSP)

### Cryptography

- [Cracking Codes with Python](https://inventwithpython.com/cracking/)

### Games

- [Coding Games With Pygame Zero & Python](https://github.com/electronstudio/pygame-zero-book)
- [Invent Your Own Computer Games with Python](https://inventwithpython.com/invent4thed/)
- [Learn Python With Arcade Academy](https://arcade-book.readthedocs.io/en/latest/)
- [Making Games with Python & Pygame](http://inventwithpython.com/pygame/)
- [Program Arcade Games With Python And Pygame](http://programarcadegames.com/)

## Lists of free Python books

- [101+ Free Python Books](https://blog.finxter.com/free-python-books/)
- [Free Python books - pythonbooks](https://www.pythonbooks.org/free-books/)
- [Legally Free Python Books List](https://www.pythonkitchen.com/legally-free-python-books-list/)

## License

Each file in this repository is licensed under the [CC BY 4.0 License](/LICENSE).

## Sponsor this project

<a href="https://www.buymeacoffee.com/amoroso" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/arial-red.png" alt="Buy Me A Coffee" width="220px"></a>

If you find this resource useful and want to sponsor the project you can [buy me a coffee](https://www.buymeacoffee.com/amoroso).
