Exercises
From ★ to ★★★, with fully worked solutions.
The CS Foundations Blueprint
Python, the math of computer science, the essential libraries and 12 real projects. All in one book.
322-page PDF ebook · Instant download
Why this book exists
You've watched hours of videos, but you still freeze in front of an empty file.
You can copy code, but you don't really know why it works.
Math, algorithms, OOP: everyone says they matter. Nobody connects them to real code.
# one book, one path path = ["math", "python", "libraries", "projects"] for step in path: learn(step) # in the right order
The first year of a CS degree, plus the practical skills a degree skips. In the right order, in one book. Intuition first, formulas second, code everywhere.
Part 1 · The math of computer science
Every other course jumps straight into Python syntax and skips the math. But the math is what separates people who copy code from people who understand it. Algorithms, graphics, data science and AI all run on it.

Every idea gets a picture, an intuition, and Python code right next to the formula.
Part 2 · Python, beginner to pro
From your first variable to decorators, generators, async and algorithms. All 293 code examples were executed while the book was built, so every output panel shows the real result.

Look inside
Real pages from the book. Swipe through, and tap any page to see it full size.








Swipe ›
Why it's different
Every code block was run while the book was built. The output you read is the output you'll get.
From ★ to ★★★, with fully worked solutions.
The best lesson on YouTube for every topic, with a QR code.
Every hard idea gets a picture.
Architecture, milestones and starter code.
One PDF you download once and keep forever. Read it on a laptop or tablet, or print it. Clickable contents and bookmarks.
The full path
Python, VS Code, your first program, reading errors like a pro.
Discrete math · Calculus · Linear algebra · Probability & statistics
First steps · Control flow · Data structures · Functions · Errors & files · OOP I & II · Advanced Python · Algorithms · Pro workflow
Standard library · NumPy · pandas · Matplotlib · Web, APIs & databases · Machine learning
12 portfolio projects, from beginner to advanced.
Worked solutions · Printable cheat sheets · Your roadmap for what's next
Part 4 · From learner to builder
You learn by building. Every project is a full blueprint: the chapters you need, the architecture, the folder structure, step-by-step milestones, starter code and explanations along the way. They start with a game you can finish in an evening and grow all the way to a REST API with tests and a neural network you build from scratch.

Who it's for
Never coded? You start from the very first line. No skipped steps.
The first-year math, finally clear, and connected to code.
Fill the gaps: the math, real OOP design, algorithms, the pro workflow.
NumPy, pandas, machine learning, and the math that makes them work.
🔐 Secret discount code
Somewhere in this puzzle is a 2-letter discount code. Solve it, enter it at checkout, and the book is half price.
# hint 1: the price (at checkout) price = "???" # ring a bell? # hint 2: the name behind this book brand = "PYCodeAI" # hint 3: the code is only 2 letters assert len(code) == 2
Type your guess for fun. The real check happens at checkout.
No spoilers in the comments 🤫
No. Chapter 0 starts by installing Python, and every concept is explained from scratch before it's used. If you already code, the math, OOP design, algorithms and projects will take you much further.
It's taught intuition-first, with pictures and Python code next to every formula. If you can do high-school algebra, you can follow it.
A 322-page PDF (A4). You download it right after checkout, and it's yours to keep. It reads well on a laptop or tablet and prints cleanly. The contents and bookmarks are clickable.
Python 3.12. Everything also works on Python 3.10 and newer.
Yes. Payment is handled by Gumroad, a platform used by millions of creators. We never see your card details.
On the checkout page, in the discount code field. If you got it right, the price drops by 50% instantly.
322 pages · 22 chapters · 12 projects · 116 exercises · 61 videos
Get the bookSecure checkout by Gumroad · Instant download
Cracked the code? Enter it at checkout.