Project Python is a free interactive book that will teach you to code in Python, using graphics, animations, and games. You’ll also learn ways to solve classical computer science problems, principles of software design, and how to analyze algorithm performance. No prior experience required; you’ll write code to draw a smiley face by the end of the first chapter.
By Devin Balkcom, with significant contributions from Vasanta Kommineni, Tom Cormen, and Hany Farid. We recommend using an updated version of Chrome or Firefox to run the interactive examples.
If you’d like to run the interactive examples using your own
locally-installed Python interpreter, you’ll need the cs1lib library. Download, unzip, and put the .py
file in the same directory as your Python code. You’ll also need PyQt,
which you can install with pip
.