An AI tutor for CS homework

Paste your homework.Keep thinking.

Paste any assignment, or ask for a topic like inheritance to get a fresh practice problem. Moth coaches you checkpoint by checkpoint and never hands you the answer.

  • recursion
  • linked lists
  • inheritance
  • trees
  • higher-order functions
  • iterators
  • generators
  • dictionaries
  • mutation
  • list comprehensions
  • classes
  • closures

How it works

From problem set to done, one checkpoint at a time.

  1. 01assignment · topic · pdf

    Paste it in

    Drop in a full assignment, type a topic like "linked list practice", or upload a past exam PDF and get a similar problem to work on.

  2. 02one tab per problem

    Get it broken down

    Moth pulls each problem into its own tab and lays out checkpoints, so you always know what the next small step is.

  3. 03feedback per line

    Write it yourself

    As you type, the line helper reads the line you are on and nudges you with a question, never with the finished code.

  4. 04python · pyodide

    Run the doctests

    Python runs right in your browser through Pyodide, so you can check your work against the doctests without installing anything.

Everything you need to get unstuck, nothing that does it for you.

Features
helper
7for key in counts:
8 total += counts[value]
line 8 · check thisWhere does value come from? Look at what the loop on line 7 actually names each item.

A line helper that reads over your shoulder

Feedback lands next to the line you are writing. Set it to full, bottom bar only, or off when you want to go quiet.

$ run doctests
Trying: reverse(link([1, 2]))
ok

Doctests in your browser

Python runs locally through Pyodide. Nothing to install.

zipenumerateisinstancesuper()

A reference sheet for this problem

The syntax you actually need here, with short examples, one tab away.

PDF
→ similar problem

Practice from past exams

Upload an old exam and moth writes a new problem in the same shape, so you practice the skill and not the answer key.

answers questions

Hints, never solutions

Moth is built to coach. It points at the gap in your reasoning and leaves the code to you.

The principle

Most AI tools hand you the answer and the learning walks out the door. Moth asks the next question instead, so the thinking stays yours.

Your next problem set is waiting.

Python · runs in your browser