Invent with Python
Invent with Python
I'm Al Sweigart, and I write books to teach beginners to code. I put them online for free because
programming is too valuable and needs to be accessible to all. (You can also buy print and
ebooks versions.) My approach takes out the intimidation so that you can become productive
and enjoy the creative aspects of coding.
New Books!
https://inventwithpython.com 1/20
1/9/25, 12:34 PM Invent with Python
Programming Books by Al
Sweigart
https://inventwithpython.com 2/20
1/9/25, 12:34 PM Invent with Python
More Info
Python Programming
Exercises, Gently
Explained
More Info
More Info
https://inventwithpython.com 3/20
1/9/25, 12:34 PM Invent with Python
More Info
More Info
https://inventwithpython.com 4/20
1/9/25, 12:34 PM Invent with Python
More Info
More Info
https://inventwithpython.com 5/20
1/9/25, 12:34 PM Invent with Python
More Info
Scratch 3
Programming
Playground
More Info
https://inventwithpython.com 6/20
1/9/25, 12:34 PM Invent with Python
More Info
Everyone in the 21st century needs to learn to code, right? But not
everyone needs to become a software engineer or computer
scientist. Automate the Boring Stuff with Python is written for office
workers, students, administrators, and anyone who uses a computer
how to write small, practical programs to automate tasks on their
computer.
https://inventwithpython.com 7/20
1/9/25, 12:34 PM Invent with Python
You can also take the online course of this book on Udemy. Use this
link to purchase the course for about $14 (about a 70% discount!)
Recursion, Understandable by
Humans
https://inventwithpython.com 8/20
1/9/25, 12:34 PM Invent with Python
This book teaches the basics of recursion, exposes the ways it's
often poorly taught, and clarifies the fundamental principles behind
all recursive algorithms. It is project-based, containing complete,
runnable programs in both Python and JavaScript, and covers
several common recursive algorithms for tasks like calculating
factorials, producing numbers in the Fibonacci sequence, tree
traversal, maze solving, binary search, quicksort and merge sort,
Karatsuba multiplication, permutations and combinations, and
solving the eight queens problem.
https://inventwithpython.com 9/20
1/9/25, 12:34 PM Invent with Python
https://inventwithpython.com 10/20
1/9/25, 12:34 PM Invent with Python
You’ll create:
https://inventwithpython.com 11/20
1/9/25, 12:34 PM Invent with Python
Welcome to Beyond the Basic Stuff with Python. More than a mere
collection of advanced syntax and masterful tips for writing clean
code, you'll learn how to advance your Python programming skills
by using the command line and other professional tools like code
formatters, type checkers, linters, and version control. Sweigart
takes you through best practices for setting up your development
environment, naming variables, and improving readability, then
tackles documentation, organization and performance
measurement, as well as object-oriented design and the Big-O
algorithm analysis commonly used in coding interviews. The skills
you learn will boost your ability to program—not just in Python but
in any language.
https://inventwithpython.com 12/20
1/9/25, 12:34 PM Invent with Python
You've mined for diamonds, crafted dozens of tools, and built all
sorts of structures—but what if you could program robots to do all
of that for you in a fraction of the time?
In Coding with Minecraft, you'll create a virtual robot army with Lua,
a programming language used by professional game developers.
Step-by-step coding projects will show you how to write programs
that automatically dig mines, collect materials, craft items, and build
anything that you can imagine. Along the way, you'll explore key
computer science concepts like data types, functions, variables, and
more.
You can get a free review copy of this ebook! (Scroll to the
bottom of this link for info.)
https://inventwithpython.com 13/20
1/9/25, 12:34 PM Invent with Python
Cracking Codes with Python is the new edition of the older book,
Hacking Secret Ciphers with Python.
https://inventwithpython.com 14/20
1/9/25, 12:34 PM Invent with Python
Invent Your Own Computer Games with Python teaches you how to
program in the Python language. Each chapter gives you the
complete source code for a new game, and then teaches the
programming concepts from the examples. Games include Guess
the Number, Hangman, Tic Tac Toe, and Reversi. This book also has
an introduction to making games with 2D graphics using the
Pygame framework.
https://inventwithpython.com 15/20
1/9/25, 12:34 PM Invent with Python
There is also an online Udemy course that follows the book, and
you can sign up for free. (This course covers the old Scratch 2
version. It will be updated in the future.)
https://inventwithpython.com 16/20
1/9/25, 12:34 PM Invent with Python
Making Games with Python & Pygame covers the Pygame library
with the source code for 11 games. Making Games was written as a
sequel for the same age range as Invent with Python. Once you
have an understanding of the basics of Python programming, you
can now expand your abilities using the Pygame library to make
games with graphics, animation, and sound.
The book features the source code to 11 games. The games are
clones of classics such as Nibbles, Tetris, Simon, Bejeweled, Othello,
Connect Four, Flood It, and others.
https://inventwithpython.com 17/20
1/9/25, 12:34 PM Invent with Python
70% Discount
Now free!
Videos
There are several programming tutorial videos I create on my
YouTube channel:
https://inventwithpython.com 18/20
1/9/25, 12:34 PM Invent with Python
Donate
All of my books are free to download and share under a Creative
Commons license and have been part of Humble Book Bundles
benefitting charities. If you'd like to help me out, there are several
options:
Support me on Patreon
Use my Udemy referral discount codes. My referral links
bring me more income than even paying full price without the
referral. Sign up for the Automate course with this link for a
70% discount.
Write a review on Amazon helps get the word out about my
books:
Python Programming Exercises, Gently Explained
The Recursive Book of Recursion
The Big Book of Small Python Projects
Beyond the Basic Stuff with Python
Coding with Minecraft
Automate the Boring Stuff with Python
Cracking Codes with Python
Invent Your Own Computer Games with Python, 4th
Edition
Making Games with Python & Pygame
Scratch 3 Programming Playground
About Al Sweigart
Al Sweigart is a software developer and tech book author. Python is
his favorite programming language, and he is the developer of
several open source modules for it. His cat weighs 11 pounds.
https://inventwithpython.com 19/20
1/9/25, 12:34 PM Invent with Python
https://inventwithpython.com 20/20