Hello Monty

Python, one loop at a time.

Monty is a free Python course for 11 to 18 year olds. You write real code, and tests check it. Where AI help is offered, it looks at your own code and points to the next step. It's built not to hand you the answer.

No account, no email. Your progress stays on this device.

For teachers and parents: help, not answers.

What happens when you press Check

Tests decide whether your code works. A clue explains the error straight away. Then, where it's offered, AI help points to the line that matters and asks a question that leads to the fix.

Unit 2 · Variables and input

Birthday math

Ask for the user's age, then print how old they'll be next year.

How old are you? 12
Next year you'll be 13

0 of 2 tests passing

age = input("How old are you? ")
next_year = age + 1
AI helpLine 2

Line 2 tries to add 1 to age. But input() always gives back text, so age is "12", not the number 12. What could we put around input() on line 1 to turn the text into a number?

Hint 1 of 4
print("Next year you'll be", next_year)
How old are you? 12
Traceback (most recent call last):
File "main.py", line 2, in <module>
TypeError: can only concatenate str (not "int") to str

Instant clue, line 2: Python tried to add some text and a number together, and it can't do that.

Tests decide

Pass or fail comes from real tests running in your browser, never from the AI's opinion.

The clue is instant

Errors get a plain explanation in milliseconds, in your language, with no AI involved.

AI help asks questions

One thing to look at, your own line and variable names, and a question that leads you to the fix.

Monty grows up with you

Everyone starts with a yellow hatchling. As you master new ideas, your Monty turns lime and then green.

  1. Hatchling

    Output, strings and variables.

  2. Wriggler

    Decisions and loops.

  3. Climber

    Lists, functions and dictionaries.

  4. Canopy

    Algorithms, objects and recursion.

It's true. Green tree pythons hatch bright yellow and turn green as they grow up. Adults often have white or blue flecks along their spine.

Why Monty?

The Python language is named after Monty Python, a British comedy group from the 1970s, not after the snake. So our snake is called Monty.

For teachers and parents

Help, not answers.

A student can paste an exercise into a chatbot and copy the answer. Monty works the other way round: AI help reads the student's own code, explains what is happening at their level and in their language, and asks a question that leads to the next step. It's built not to write the solution, however it's asked, and like any AI it can be wrong.

Pass and fail come from tests, not from the AI. Errors get an instant explanation that doesn't use AI at all. Hints climb gradually from "where to look" to a worked example of a different problem.

Monty collects as little as possible: a nickname, a country, a grade and settings. No real names, no email, no location, no ads, no tracking.

Teaching a class? See Monty for schools

Computing exams your students may take

United States

Computing qualifications listed for this country. Monty's lessons are the same whichever one a student takes:

  • College Board AP Computer Science Principles Some sections matched
  • College Board AP Computer Science A

Some sections matched: some ideas in Monty's lessons are matched to sections of that qualification's specification. When a student chooses it, AI help is told the matching section, where there is one. The other qualifications are listed, not matched.

No exam board has endorsed or approved Monty.