Free Python for AI course
Learn Python from your first line of code to your first call to a language model, with nothing to install.
Confident wrong answers, miscounted letters, copying from the prompt, temperature, long prompts that dilute, and a model that never says "I don't know": each behavior reproduced on a tiny GPT with every number printed by code, then the mechanism behind it and the Phase 1 technique it justifies.
Hallucination, tokens and letters, in-context learning and induction heads, temperature, attention dilution and lost-in-the-middle, compliance and sycophancy.
A free account opens them all.
Some lessons here build on earlier ones in the academy. The placement test can mark off what you already know, and you can open any of them first:
Finish every lesson and you earn a self-paced certificate of completion, "Why Models Do That course", with its own link you can share or add to LinkedIn. Lessons you skip in the placement test count once you pass their phase's checkpoint.
Yes. There's nothing to pay, here or anywhere in the academy. A free account saves your progress and issues your certificate.
No. The Python in these lessons runs in your browser.
About 3 hours in all, at your own pace. Your progress stays where you left it.
That your account recorded every lesson as finished. A self-paced certificate of completion rests on the progress your own devices record as you study. Pass a phase's checkpoint, 12 questions that the academy's server draws and marks itself, and the certificate becomes a verified one that names the checkpoint behind it. Lessons you skip in the placement test count toward a certificate once you pass that checkpoint. There is no proctored exam, and neither kind is an accredited qualification.
Or take the whole course: 575 lessons, from your first line of Python to production AI.
Learn Python from your first line of code to your first call to a language model, with nothing to install.
Learn to write prompts that work reliably, then test them like an engineer: clear instructions, examples, structured output, chains, evals and defenses against prompt injection.
Build retrieval-augmented generation step by step: embeddings, chunking, vector search, grounded answers with sources, and the measurements that tell you whether it works.
Learn how to build AI agents by building one: tools, the agent loop, MCP, permissions, context management and evals, ending with a coding agent that stops when its tests pass.
Go from counting letter pairs to a small GPT you train yourself: tokenizers, attention, transformer blocks and the GPT architecture, written line by line.
Go from your first line of code to working as a Python developer: projects, testing, data, databases, web apps and APIs, all in your browser.
Follow one prompt, "The cat sat", through a language model with every number shown: tokens to IDs, embeddings and positional waves, the attention matrix, the feed-forward layer, and the probability over the next word.
Read a model's weights, change them by hand and judge an edit someone else made: deltas, merging, low-rank edits, directions and fact edits on a tiny GPT in your browser. Then replay recorded sessions of an LLM reading, fixing and writing weights, check the published edit of a real open model, and ship a model of your own with its patch, verdict and card. Every number is printed by the lesson's own code, and the method's limits are taught with it.
Take a model from a notebook to a system that stays right: track and reproduce every run, search settings honestly, version data and models, promote through gates, keep training and serving in step, choose batch or online, catch drift, and retrain through a pipeline. Every number is measured by the lesson's own code.
Learn the math behind AI from arithmetic up: numbers, algebra, vectors and matrices, calculus, probability and statistics, each shown as numbers moving and checked in Python, ending with a network you build and train from the formulas.
Learn to make any letter of any formula the subject: layers undone in reverse order, fractions, a letter that appears twice, powers, roots, quadratics, logs, inequalities, trigonometry, vectors, matrices, calculus, probability, statistics and the formulas inside AI models, each checked in Python.
Never trained an AI? Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account. Teach it to write
A free account saves your progress across devices and issues your certificate when you finish.