Zero to AI

The mountain › Level 1 of 5

LEVEL 1 · PYTHON

Base Camp

Start from zero. Learn to think in code with Python.

Try 5 free lessonsLessons 0, 1, 2, 3, 4. No login, no payment.

What you will be able to do

  • Read and write Python programs on your own
  • Use variables, decisions, loops, lists, dictionaries and functions
  • Predict what code does before you run it, and fix it when it breaks
  • Build a text adventure or an expense tracker from a blank screen

What is inside

41 lessons in 4 units. Lessons 0, 1, 2, 3, 4 are free for everyone. The rest, the test and the boss projects are for students who buy the level.

Unit 1: First steps · lessons 0-8

Run your first program, then store, change and print information.

See the 9 lessons
  1. Why learn to code when AI can write it?FREE
  2. What is code?FREE
  3. print(): showing things on the screenFREE
  4. Variables: boxes with namesFREE
  5. Numbers and mathsFREE
  6. Strings: working with text
  7. input(): asking the user
  8. Types and conversion
  9. Reading error messages

Unit 2: Decisions and loops · lessons 9-18

Make programs choose and repeat. This is where code starts to feel powerful.

See the 10 lessons
  1. Booleans and comparisons
  2. if and else
  3. elif chains
  4. and, or, not
  5. while loops
  6. for loops and range
  7. break and continue
  8. Nested loops
  9. Loop patterns
  10. Mini game: guess the number

Unit 3: Collections · lessons 19-28

Lists, dictionaries and tuples: working with many values at once.

See the 10 lessons
  1. Lists
  2. List methods
  3. Slicing and copying
  4. Tuples
  5. Dictionaries
  6. Looping over dictionaries
  7. Sets
  8. Nested data
  9. Strings in depth
  10. List comprehensions

Unit 4: Functions and beyond · lessons 29-40

Functions, files, errors and your first small programs.

See the 12 lessons
  1. Functions
  2. Parameters and defaults
  3. return vs print
  4. Scope
  5. Recursion and the call stack
  6. Errors and try/except
  7. Modules and imports
  8. Files
  9. Classes and objects
  10. Attributes and methods
  11. Searching and sorting
  12. Debugging like a pro

How every lesson works

  1. WatchA short animated figure shows the idea.
  2. PredictGuess what the code prints before you run it.
  3. PlayChange the code and see what happens.
  4. FixFind the bug in broken code.
  5. BuildWrite it yourself. Automatic checks tell you what works.
  6. RecallOne question to lock it in.

How you clear this level

Pass the test25 questions. You need 75% to pass. It opens after you finish all 41 lessons, and you get a limited number of attempts (normally 1), so revise first.
Build 1 of the 2 boss projectsText adventure: the cellar key and Expense tracker. It opens after the last lesson. Automatic checks run your program and tell you what works, and each project has a limited number of attempts (normally 1).
Earn your certificateBoth done: you get the certificate. Web Builder is the next stop when you want it.

Good to know

  • Python downloads once the first time you run code, so you need internet then.
  • Your progress is saved to your account, so you can continue on another phone or laptop.
  • One account works on up to 2 devices.