minibatch

Lessons

Your path, one small batch at a time. Your progress is saved on this device.

Today

One lesson keeps your streak going

Set your daily goal
0days

Streak freeze ready

  1. M
  2. T
  3. W
  4. T
  5. F
  6. S
  7. S, today
Next: Lesson 1 · Values and variables0 of 140 lessons done · 0 XP
Start lesson 1
Pick a career pathData analyst, AI and machine learning, or Python developer
Course 1

Python Foundations

From a first line of code to analyzing a small dataset.24 lessons · about 236 minutes
  1. StartValues and variablesLesson 1 · 9 minBuildStep throughFill gapsFind the bugPut in orderWrite code
  2. Numbers and expressionsLesson 2 · 9 minBuildStep throughFill gapsFind the bugWrite code
  3. TextLesson 3 · 12 minFill gapsBuildExploreFind the bugWrite code
  4. Working with textLesson 4 · 11 minBuildStep throughFind the bugExploreFill gapsWrite code
  5. DecisionsLesson 5 · 10 minBuildStep throughFill gapsFind the bugPut in orderWrite code
  6. Combining conditionsLesson 6 · 10 minBuildFill gapsFind the bugStep throughPut in orderWrite code
  7. ListsLesson 7 · 12 minBuildExploreStep throughFill gapsFind the bugWrite code
  8. More with listsLesson 8 · 11 minBuildExploreStep throughFind the bugFill gapsWrite code
  9. For loopsLesson 9 · 10 minBuildPut in orderFill gapsFind the bugStep throughWrite code
  10. Loop patternsLesson 10 · 10 minBuildStep throughFill gapsFind the bugWrite code
  11. While loops and patternsLesson 11 · 10 minBuildFill gapsFind the bugStep throughPut in orderWrite code
  12. Stopping earlyLesson 12 · 8 minBuildStep throughFind the bugFill gapsPut in orderWrite code
  13. Converting and formattingLesson 13 · 8 minBuildFind the bugFill gapsStep throughPut in orderWrite code
  14. List comprehensionsLesson 14 · 9 minStep throughFill gapsFind the bugBuildWrite code
  15. FunctionsLesson 15 · 9 minBuildStep throughFill gapsFind the bugPut in orderWrite code
  16. More about functionsLesson 16 · 10 minBuildFind the bugFill gapsStep throughWrite code
  17. When code goes wrongLesson 17 · 10 minFind the bugBuildStep throughFill gapsWrite code
  18. DictionariesLesson 18 · 9 minBuildFind the bugStep throughFill gapsWrite code
  19. In, and setsLesson 19 · 8 minBuildFind the bugStep throughFill gapsPut in orderWrite code
  20. Nested dataLesson 20 · 10 minBuildStep throughFind the bugFill gapsWrite code
  21. Reading data from textLesson 21 · 8 minBuildStep throughFind the bugFill gapsPut in orderWrite code
  22. Objects and classesLesson 22 · 10 minBuildFind the bugStep throughFill gapsPut in orderWrite code
  23. Project: count the wordsLesson 23 · 11 minBuildStep throughFill gapsFind the bugWrite code
  24. Project: analyze a small datasetLesson 24 · 12 minBuildWrite codeStep throughFill gapsFind the bug
Final challengeUnlocks when all 24 lessons are done
Course 2

Functions and Clean Code

Write functions you can trust, test them, and build a secret-code project.12 lessons · about 96 minutes
  1. Return early, return clearlyLesson 25 · 8 minBuildStep throughFind the bugFill gapsPut in orderWrite code
  2. Where names liveLesson 26 · 8 minBuildStep throughFind the bugFill gapsWrite code
  3. Functions that change listsLesson 27 · 8 minBuildStep throughFind the bugFill gapsPut in orderWrite code
  4. Testing with assertLesson 28 · 8 minBuildFind the bugStep throughFill gapsPut in orderWrite code
  5. Edge cases and bad inputLesson 29 · 8 minBuildFind the bugStep throughFill gapsPut in orderWrite code
  6. Finding the bugLesson 30 · 8 minBuildStep throughFind the bugFill gapsPut in orderWrite code
  7. Functions as valuesLesson 31 · 8 minBuildStep throughFind the bugFill gapsPut in orderWrite code
  8. Small helpers, one pipelineLesson 32 · 8 minBuildStep throughFind the bugFill gapsPut in orderWrite code
  9. Project: shift one letterLesson 33 · 8 minBuildStep throughFind the bugFill gapsPut in orderWrite code
  10. Project: encode a messageLesson 34 · 8 minBuildStep throughFind the bugFill gapsPut in orderWrite code
  11. Project: crack the codeLesson 35 · 8 minBuildStep throughFind the bugFill gapsPut in orderWrite code
  12. Checking AI-written codeLesson 36 · 8 minBuildFind the bugStep throughFill gapsPut in orderWrite code
Final challengeUnlocks when all 12 lessons are done
Course 3

Python for Data

Work with whole tables of numbers at once using NumPy.11 lessons · about 108 minutes
  1. From lists to arraysLesson 37 · 11 minBuildExploreFind the bugFill gapsWrite code
  2. Making arraysLesson 38 · 10 minBuildFind the bugExploreFill gapsWrite code
  3. Math on whole arraysLesson 39 · 10 minBuildExploreFind the bugFill gapsWrite code
  4. Rows, columns and the dot productLesson 40 · 10 minStep throughBuildFill gapsFind the bugWrite code
  5. Selecting dataLesson 41 · 11 minBuildExploreFind the bugFill gapsWrite code
  6. Summarizing dataLesson 42 · 11 minExploreBuildFind the bugFill gapsWrite code
  7. Sort and rankLesson 43 · 8 minBuildStep throughFind the bugFill gapsPut in orderWrite code
  8. Group and compareLesson 44 · 8 minBuildStep throughFind the bugFill gapsPut in orderWrite code
  9. Cleaning dataLesson 45 · 10 minBuildFill gapsFind the bugExploreWrite code
  10. Spot a relationshipLesson 46 · 8 minBuildStep throughFind the bugFill gapsPut in orderWrite code
  11. Project: a year of weatherLesson 47 · 11 minExploreFill gapsFind the bugBuildWrite code
Final challengeUnlocks when all 11 lessons are done
Course 4

Data Analysis with pandas

Load, clean, group and join real tables with pandas, then turn them into charts with matplotlib.13 lessons · about 104 minutes
  1. Tables with pandasLesson 48 · 8 minBuildStep throughFind the bugFill gapsPut in orderWrite code
  2. Filter rowsLesson 49 · 8 minBuildFill gapsFind the bugStep throughPut in orderWrite code
  3. Sort and find the topLesson 50 · 8 minBuildFill gapsFind the bugStep throughPut in orderWrite code
  4. Make new columnsLesson 51 · 8 minBuildStep throughFill gapsFind the bugPut in orderWrite code
  5. Group and summarizeLesson 52 · 8 minBuildStep throughFill gapsFind the bugPut in orderWrite code
  6. Clean messy dataLesson 53 · 8 minBuildFill gapsFind the bugStep throughPut in orderWrite code
  7. Join two tablesLesson 54 · 8 minBuildFill gapsFind the bugStep throughPut in orderWrite code
  8. Read a CSV fileLesson 55 · 8 minBuildFill gapsFind the bugStep throughPut in orderWrite code
  9. Your first chartLesson 56 · 8 minBuildFill gapsFind the bugStep throughPut in orderWrite code
  10. Bar charts that compareLesson 57 · 8 minBuildFill gapsFind the bugStep throughPut in orderWrite code
  11. Scatter plots and histogramsLesson 58 · 8 minBuildFill gapsFind the bugStep throughPut in orderWrite code
  12. Charts straight from a tableLesson 59 · 8 minBuildFill gapsFind the bugStep throughPut in orderWrite code
  13. Project: a café's salesLesson 60 · 8 minBuildFill gapsFind the bugPut in orderWrite code
Final challengeUnlocks when all 13 lessons are done
Course 5

SQL with Python

Keep tables in a SQLite database, ask them questions with SELECT, WHERE, GROUP BY and JOIN, and bring the answers into pandas.9 lessons · about 72 minutes
  1. Your first queryLesson 61 · 8 minBuildStep throughFill gapsFind the bugPut in orderWrite code
  2. Pick rows with WHERELesson 62 · 8 minBuildStep throughFill gapsFind the bugPut in orderWrite code
  3. Safe values with ?Lesson 63 · 8 minBuildFind the bugFill gapsStep throughPut in orderWrite code
  4. Sort, trim and dedupeLesson 64 · 8 minBuildStep throughFill gapsFind the bugPut in orderWrite code
  5. Count, sum and groupLesson 65 · 8 minBuildStep throughFind the bugFill gapsPut in orderWrite code
  6. Join two tablesLesson 66 · 8 minBuildStep throughFind the bugFill gapsPut in orderWrite code
  7. Change and delete rowsLesson 67 · 8 minBuildStep throughFind the bugFill gapsPut in orderWrite code
  8. SQL meets pandasLesson 68 · 8 minBuildStep throughFind the bugFill gapsPut in orderWrite code
  9. Project: a shop's databaseLesson 69 · 8 minBuildStep throughFind the bugFill gapsPut in orderWrite code
Final challengeUnlocks when all 9 lessons are done
Course 6

Machine Learning from Scratch

Build a model by hand, then teach a computer to improve it.15 lessons · about 153 minutes
  1. What a model isLesson 70 · 10 minExploreBuildFill gapsFind the bugWrite code
  2. Measuring errorLesson 71 · 10 minStep throughExploreFind the bugFill gapsBuildWrite code
  3. Gradient descentLesson 72 · 12 minExploreBuildStep throughFind the bugWrite code
  4. Training linear regressionLesson 73 · 11 minExploreBuildStep throughFill gapsFind the bugWrite code
  5. More than one inputLesson 74 · 11 minFill gapsFind the bugStep throughExploreBuildWrite code
  6. OverfittingLesson 75 · 10 minFind the bugStep throughExploreFill gapsBuildWrite code
  7. ClassificationLesson 76 · 11 minFind the bugBuildExploreFill gapsWrite code
  8. Is the classifier any good?Lesson 77 · 10 minStep throughBuildFind the bugFill gapsWrite code
  9. A single neuronLesson 78 · 11 minExploreBuildFind the bugFill gapsWrite code
  10. Decision boundariesLesson 79 · 10 minExploreBuildStep throughFind the bugFill gapsWrite code
  11. Training a classifierLesson 80 · 10 minStep throughFind the bugBuildFill gapsExploreWrite code
  12. A small neural networkLesson 81 · 10 minBuildStep throughFind the bugFill gapsWrite code
  13. Bending the lineLesson 82 · 8 minBuildStep throughFind the bugFill gapsPut in orderWrite code
  14. A network that reads shapesLesson 83 · 8 minBuildStep throughFind the bugFill gapsPut in orderWrite code
  15. Project: from data to a modelLesson 84 · 11 minBuildFill gapsFind the bugWrite code
Final challengeUnlocks when all 15 lessons are done
Course 7

Machine Learning with scikit-learn

Train, test and compare real models with scikit-learn, the library behind most machine learning in Python.9 lessons · about 72 minutes
  1. Your first scikit-learn modelLesson 85 · 8 minBuildStep throughFill gapsFind the bugPut in orderWrite code
  2. Train and test setsLesson 86 · 8 minBuildStep throughFind the bugFill gapsPut in orderWrite code
  3. Score a modelLesson 87 · 8 minBuildStep throughFill gapsFind the bugPut in orderWrite code
  4. ClassifiersLesson 88 · 8 minBuildStep throughFill gapsFind the bugPut in orderWrite code
  5. Decision treesLesson 89 · 8 minBuildStep throughFill gapsFind the bugPut in orderWrite code
  6. Scaling and pipelinesLesson 90 · 8 minBuildStep throughFind the bugFill gapsPut in orderWrite code
  7. Cross-validationLesson 91 · 8 minBuildStep throughFill gapsFind the bugPut in orderWrite code
  8. Mistakes and thresholdsLesson 92 · 8 minBuildStep throughFill gapsFind the bugPut in orderWrite code
  9. Project: who will cancel?Lesson 93 · 8 minBuildFill gapsFind the bugStep throughPut in orderWrite code
Final challengeUnlocks when all 9 lessons are done
Course 8

How AI Works

What a chatbot is really doing, from guessing the next word to building a small language model in Python.13 lessons · about 109 minutes
  1. Guessing the next wordLesson 94 · 8 minBuildStep throughFind the bugFill gapsPut in orderWrite code
  2. More context, better guessesLesson 95 · 8 minBuildStep throughFind the bugFill gapsPut in orderWrite code
  3. TemperatureLesson 96 · 10 minExploreBuildStep throughFind the bugFill gapsWrite code
  4. Learning from surpriseLesson 97 · 8 minBuildFind the bugFill gapsPut in orderWrite code
  5. Tokens, not wordsLesson 98 · 8 minBuildStep throughFind the bugFill gapsPut in orderWrite code
  6. Pieces of wordsLesson 99 · 8 minBuildStep throughFind the bugFill gapsPut in orderWrite code
  7. From counting to learningLesson 100 · 8 minBuildStep throughFind the bugFill gapsPut in orderWrite code
  8. Images are numbersLesson 101 · 8 minBuildStep throughFind the bugFill gapsPut in orderWrite code
  9. Reading digitsLesson 102 · 9 minExploreBuildStep throughFind the bugFill gapsWrite code
  10. A map of meaningLesson 103 · 10 minBuildStep throughExploreFind the bugFill gapsWrite code
  11. Counting what followsLesson 104 · 8 minBuildStep throughFind the bugFill gapsPut in orderWrite code
  12. Chances from bigramsLesson 105 · 8 minBuildStep throughFind the bugFill gapsPut in orderWrite code
  13. Project: build a language modelLesson 106 · 8 minBuildStep throughFind the bugFill gapsPut in orderWrite code
Final challengeUnlocks when all 13 lessons are done
Course 9

Build with AI

Build apps on top of language models in plain Python: prompts, chat history, JSON replies, search, retrieval, tools, agents and evals.12 lessons · about 96 minutes
  1. Prompts are stringsLesson 107 · 8 minBuildStep throughFill gapsFind the bugPut in orderWrite code
  2. Count tokens, count costsLesson 108 · 8 minBuildStep throughFill gapsFind the bugPut in orderWrite code
  3. Remember the conversationLesson 109 · 8 minBuildStep throughFill gapsFind the bugPut in orderWrite code
  4. Ask for JSONLesson 110 · 8 minBuildStep throughFill gapsFind the bugPut in orderWrite code
  5. Text as vectorsLesson 111 · 8 minBuildStep throughFill gapsFind the bugPut in orderWrite code
  6. Search by similarityLesson 112 · 8 minBuildStep throughFill gapsFind the bugPut in orderWrite code
  7. Split long documentsLesson 113 · 8 minBuildStep throughFill gapsFind the bugPut in orderWrite code
  8. Look it up, then answerLesson 114 · 8 minBuildStep throughFill gapsFind the bugPut in orderWrite code
  9. Let the model use toolsLesson 115 · 8 minBuildStep throughFill gapsFind the bugPut in orderWrite code
  10. The agent loopLesson 116 · 8 minBuildStep throughFill gapsFind the bugPut in orderWrite code
  11. Test the answersLesson 117 · 8 minBuildStep throughFill gapsFind the bugPut in orderWrite code
  12. Project: a help-desk botLesson 118 · 8 minBuildFill gapsFind the bugStep throughPut in orderWrite code
Final challengeUnlocks when all 12 lessons are done
Course 10

Algorithms

Recursion, counting steps, searching and sorting, and proving your code is right.10 lessons · about 89 minutes
  1. Functions that call themselvesLesson 119 · 9 minBuildStep throughFill gapsPut in orderWrite code
  2. The call stackLesson 120 · 10 minExploreStep throughFind the bugFill gapsWrite code
  3. Counting stepsLesson 121 · 9 minBuildStep throughExploreFind the bugFill gapsWrite code
  4. Big-OLesson 122 · 10 minBuildExploreStep throughFill gapsPut in orderWrite code
  5. Linear and binary searchLesson 123 · 9 minExploreBuildStep throughFind the bugFill gapsWrite code
  6. Binary search in codeLesson 124 · 9 minExploreStep throughFind the bugFill gapsPut in orderWrite code
  7. Sorting by handLesson 125 · 8 minBuildStep throughFind the bugFill gapsPut in orderWrite code
  8. Merge sortLesson 126 · 9 minExploreStep throughFind the bugFill gapsPut in orderWrite code
  9. Hidden costsLesson 127 · 8 minBuildStep throughFind the bugFill gapsPut in orderWrite code
  10. Proving it worksLesson 128 · 8 minBuildStep throughFind the bugFill gapsPut in orderWrite code
Final challengeUnlocks when all 10 lessons are done
Course 11

Data Structures and Objects

Design your own classes, then build stacks, linked lists, hash tables and trees, and see how each one stores data.12 lessons · about 108 minutes
  1. Designing a classLesson 129 · 8 minBuildStep throughFind the bugFill gapsPut in orderWrite code
  2. Objects inside objectsLesson 130 · 8 minBuildStep throughFind the bugFill gapsPut in orderWrite code
  3. A word predictor classLesson 131 · 8 minBuildStep throughFind the bugFill gapsPut in orderWrite code
  4. Names point to objectsLesson 132 · 8 minBuildStep throughFind the bugFill gapsPut in orderWrite code
  5. How a list is storedLesson 133 · 10 minExploreBuildStep throughFind the bugFill gapsPut in orderWrite code
  6. Stacks and queuesLesson 134 · 8 minBuildStep throughFind the bugFill gapsPut in orderWrite code
  7. Linked listsLesson 135 · 10 minExploreBuildStep throughFind the bugFill gapsPut in orderWrite code
  8. Changing a linked listLesson 136 · 10 minExploreBuildStep throughFind the bugFill gapsPut in orderWrite code
  9. How a dictionary finds thingsLesson 137 · 8 minBuildStep throughFind the bugFill gapsPut in orderWrite code
  10. Keeping a list sortedLesson 138 · 10 minExploreBuildStep throughFind the bugFill gapsPut in orderWrite code
  11. Binary search treesLesson 139 · 10 minExploreBuildStep throughFind the bugFill gapsPut in orderWrite code
  12. Walking and balancing treesLesson 140 · 10 minBuildStep throughExploreFind the bugFill gapsPut in orderWrite code
Final challengeUnlocks when all 12 lessons are done
Free playModel LabTrain a small model yourself, and beat the scenarios.