A calm place to learn to code

Learn to code, one step at a time

Code Legions is a place for children and beginners to learn programming: as a game, or with classic challenges. At your own pace, in your own language, starting with Python.

Two ways in

Pick the one that suits you today. Both teach the same Python, and you can switch whenever you like.

Plain Python, step by step

Coding exercises

Classic challenges, from your first print to reading files. Tests tell you when your code works, and a debugger shows every step.

  • Challenges with tests and hints
  • Projects of your own, with files
  • A Python guide with examples to try
See the exercises

Wherever you learn

The same gentle help in every area.

  • Real Python

    No blocks and no made-up language: what you learn works everywhere Python does.

  • Help when you're stuck

    Hints one at a time, errors that point to their line, and an editor that helps as you type.

  • Saved online

    Your code, quests, maps and saved worlds follow you to any computer.

  • Four languages

    English, Polish, Russian and Lithuanian, switched at any time. Python stays Python.

For teachers

Ready for the classroom

Make a class in a minute. Students sign in with a class code and an ID: they don't need an email.

  • Print sign-in slips for the whole class
  • Switch sign-in on for the lesson and off after it
  • Each student's progress, time and Runs, and who's stuck
  • The quest library: every quest with its solution
  • A class arena with tournaments
  • A Python course across the 27 topics of a K-12 course map
  • Python challenges of your own for your classes, and a live lesson view
See the teacher's view

For schools

A licence for the whole school

A school gets a licence for a year with a number of teacher seats and of students. Its manager gives the seats to teachers, and each teacher makes their own classes.

  • Free for everyone during the open test
  • A manager gives the seats and sees how many are used
  • Students sign in with a class code and an ID: no emails, no passwords
  • Everything is kept in the EU
Ask about a licence

Ready when you are

Make an account in a minute, or look around first: the first quests are open to everyone.