Code Legions0.133 (beta)
HomeCode KingdomExercises
Sign in
Code KingdomQuestsGame modesCreateGalleryGuide

1Foundations

From one command to a villager that loops and decides: commands, loops, values, while, decisions, numbers and text.

0 of 60 quests 0

You're playing as a guest: your progress won't be saved until you sign in.

Sign in Make an account

1 First Steps

Commands run one after another: walk every way, collect coins, say hello, fix a bug and chop the first wood.

2 Loops

Let the computer repeat things: for loops, range, and loops inside loops.

3 Values

Names for things: the tree you chop, the rock you dig, the way you walk, and counters that keep score.

4 While

Repeat until: while True, while the backpack isn't full, while there's grass ahead, and counting as you go.

5 Decisions

if, else and comparisons: look before you step, chop your way through, hide from raiders and sneak past guards.

6 Numbers

Sums with + - * /, sharing out with // and %, distances, rounding and the math module.

7 Text

Letters and words: slices, loops over strings, cleaning up, split and join, f-strings and a secret code.