Code Goblins

Six very small monsters live inside this website and they are going to teach you actual Python — loops, choices, lists, functions, the lot. Write real code, hit run, watch it work.

49 quests · 9 chapters · your progress saves automatically

Have a go right now

No sign-up, no waiting. This is a real Python interpreter — change the code and hit run.

Try me

python
Ctrl + Enter to run
Press "Run it" and watch what the goblins do…

The Journey

Nine chapters through the Goblin Grove. Each one is guarded by a goblin who is extremely serious about their one favourite topic.

Meet the Goblins

They are small, extremely opinionated, and each one knows exactly one thing very well.

Read their full files →

How it works

🐍

Genuinely real Python

Not blocks. Not pretend. You type the same Python a professional types — indentation, colons, error messages and all.

Instant, always

The whole language runs inside this page. No installing, no waiting, no internet needed after the first load.

🏆

XP, gold and badges

Every quest pays out. Solve it first try for a bonus. Solve it without a hint for another. Climb from Grub to Goblin King.

🐛

Errors that make sense

No scary red walls of text. When something breaks, a goblin tells you what happened, on which line, in plain words.

Blip has been waiting by the entrance for four hundred years and is, frankly, extremely bored.

Enter the Grove →