Python · data · machine learning · AI
Don't just use AI. Understand it.
Learn Python in short lessons, about 9 minutes each, then put it to work: analyze data with pandas and SQL, train models with scikit-learn, see how language models work inside, and build apps on top of them.
Three quick questions, then your first lesson. Nothing to install.
- lessons
- 140
- courses
- 11
- practice exercises
- 305
- a lesson
- 9 min
Try a lesson right here
Python · lesson 3
What does this print?
word = "pizza"
print(word[0])
print(word[-1])What do you want to learn?
Pick one and answer two more quick questions. We'll set your pace and where to start.
Three paths to a real skill
Compare the paths- Career pathData analystLoad, clean, query, summarize and chart real data with Python, then make predictions from it.7 courses · 93 lessons
- Career pathAI and machine learningTrain models from scratch and with scikit-learn, build a small language model, then build apps on top of AI.7 courses · 96 lessons
- Career pathPython developerWrite, test and structure real programs, query databases, and answer the questions coding interviews ask.5 courses · 67 lessons
More than lessons
Everything around the lessons is built to make the skill stick, and to show what you can do.
Practice
305 exercises in 30 practice packs
Write code, fix bugs and predict output until it sticks. A daily challenge keeps your streak going, and ideas you found hard come back for review a few days later.
Certificates
One for every course
Pass a ten-question final challenge, then add it to LinkedIn in one tap.
Portfolio
Everything you build, in one place
Your finished projects with the code you wrote, ready to open or download.
Playground
Python, NumPy, pandas and charts
Write your own programs in the page and watch them run line by line. Nothing to install.
Model Lab
Train a model and watch it learn
Drop points, pick a learning rate and see the line find its way, step by step.
How it works
Pick your goal
Three quick questions set your daily pace and where you start, from your first line or further in.
Tap through a lesson
About 9 minutes, one question per screen, with a reason for every answer and the code running beside it.
Build real things
Every course ends in a project you write yourself, from a word counter to a help-desk bot. They all land in your portfolio.
Every idea is something you can play with
Watch code run line by line. Drag a line until it fits. Pick a learning rate and train a model. These are the real pieces of the lessons, working right here.
Every lesson shows its code running, one line at a time, with each variable in its own box.
total = 0for n in [4, 6, 5]:total = total + nprint(total)
Variables
None yet
Printed
Nothing yetWhat you'll build
- Count the wordsClean a short text, split it into words, count them and find the most common.Python Foundations
- Crack the codeBreak a shift cipher by trying every shift and scoring how English each answer looks.Functions and Clean Code
- A café's salesLoad a month of café sales, clean it, find what sells best and when, and chart the answer.Data Analysis with pandas
- A shop's databaseAnswer a shop owner's questions from two tables with joins and grouping, and hand the report over as a pandas DataFrame.SQL with Python
- From data to a modelTake a small dataset all the way to a tested classifier, then compare two models.Machine Learning from Scratch
- Who will cancel?Predict which subscribers will cancel. Split the data, compare three models with cross-validation, and report one honest test score.Machine Learning with scikit-learn
- Build a language modelPut it all together and make a small language model that writes its own sentences.How AI Works
- A help-desk botBuild a small help-desk bot that finds the best FAQ page, answers with its source, admits when it doesn't know, and passes an eval.Build with AI
11 courses, one path
See every lesson- Course 1Python FoundationsFrom a first line of code to analyzing a small dataset.24 lessons · about 4 h · 5 practice packs
- Course 2Functions and Clean CodeWrite functions you can trust, test them, and build a secret-code project.12 lessons · about 2 h · 3 practice packs
- Course 3Python for DataWork with whole tables of numbers at once using NumPy.11 lessons · about 2 h · 3 practice packs
- Course 4Data Analysis with pandasLoad, clean, group and join real tables with pandas, then turn them into charts with matplotlib.13 lessons · about 2 h · 3 practice packs
- Course 5NewSQL with PythonKeep tables in a SQLite database, ask them questions with SELECT, WHERE, GROUP BY and JOIN, and bring the answers into pandas.9 lessons · about 1 h · 2 practice packs
- Course 6Machine Learning from ScratchBuild a model by hand, then teach a computer to improve it.15 lessons · about 3 h · 2 practice packs
- Course 7NewMachine Learning with scikit-learnTrain, test and compare real models with scikit-learn, the library behind most machine learning in Python.9 lessons · about 1 h · 2 practice packs
- Course 8How AI WorksWhat a chatbot is really doing, from guessing the next word to building a small language model in Python.13 lessons · about 2 h · 2 practice packs
- Course 9NewBuild with AIBuild apps on top of language models in plain Python: prompts, chat history, JSON replies, search, retrieval, tools, agents and evals.12 lessons · about 2 h · 2 practice packs
- Course 10AlgorithmsRecursion, counting steps, searching and sorting, and proving your code is right.10 lessons · about 1 h · 3 practice packs
- Course 11Data Structures and ObjectsDesign your own classes, then build stacks, linked lists, hash tables and trees, and see how each one stores data.12 lessons · about 2 h · 3 practice packs
Questions
Is it really free?
Yes. Today all 140 lessons are free to play, and Python Foundations and the Model Lab will stay free for good.
Do I need an account?
No. Open a lesson and start. Your progress, XP and streak are saved in this browser on this device.
Do I need to know any math or code?
No. Lesson 1 starts at the very first line of Python. The machine learning lessons use only adding, multiplying and averages, and every idea is shown as a picture first.
What will I learn?
Python from the first line, then data with NumPy, pandas, charts and SQL. Machine learning by hand and with scikit-learn. How language models work inside, and how to build apps on top of them: prompts, search, retrieval, tools and agents. Plus algorithms and data structures for interviews.
Does it work on my phone?
Yes. Every lesson, picture and code editor is built for a phone screen, and works on a computer too. Python runs right in the page, so there's nothing to install.
How long does it take?
About 9 minutes each, a little more for projects. A lesson a day gets you from your first print to a small neural network in about 20 weeks.
Do I get a certificate?
Yes. Finish a course's lessons, then pass its final challenge: ten questions from across the course. Your certificate has your name, the date and an ID, and adds to LinkedIn in one tap.
Is there practice beyond the lessons?
Yes. Every course has practice packs, hundreds of exercises where you write code, fix bugs and predict output. There's a daily challenge too, and review brings back the ideas you found hard.
What if I miss a day?
You get one streak freeze a week. If you miss a day, it covers it on its own and your streak carries on when you come back.
What if I change phone or clear my browser?
Progress lives on the device for now, so save a backup file from Settings now and then. Restoring it on another device carries everything over.
Start with three quick questions
Then your first lesson, about 9 minutes. Free, with nothing to install.