Python for Kids

Type real code! Draw with a turtle, ask questions, roll dice and build tiny programs in Python.

  • Meet the Turtle

    Meet the Turtle

    Write your very first Python program and make a turtle draw a square on the screen.

  • Make the Computer Talk

    Make the Computer Talk

    Use print to make Python say things, and learn how to glue pieces of text together.

  • Boxes with Labels

    Boxes with Labels

    Learn how variables remember things for you, and use them to do maths and change a drawing.

  • Ask Me Anything

    Ask Me Anything

    Make your programs ask questions with input, and learn how to turn typed answers into numbers.

  • Robot Decisions

    Robot Decisions

    Teach your programs to choose between different actions with if, elif and else, then build a robot mood program and…

  • Loops and Spirals

    Loops and Spirals

    Use for loops, range and colour lists to count, repeat and draw spirals with the turtle.

  • Pack Your Backpack

    Pack Your Backpack

    Store lots of things in one variable with a list, then add to it, count it, pick items from it…

  • Teach Python New Words

    Teach Python New Words

    Invent your own commands with def, give them parameters, and use them to draw stars and flowers.

  • Dice, Coins and Fortune Cookies

    Dice, Coins and Fortune Cookies

    Use Python’s random module to roll dice, flip coins, tell fortunes and scatter confetti.

  • Keep Going While

    Keep Going While

    Learn the while loop, which repeats until something changes, and build a countdown and a guess-the-number game.