Welcome, Coder!

Ready to learn Python? Earn badges as you complete challenges!

Year 5: Turtle

Draw shapes, create patterns, and learn how to control a digital robot.

Year 6: Logic

Create text games, password checkers, and interactive apps.

Lesson 1: Moving the Turtle

📋 Tasks:
Watch the video tutorial
Type the movement code
Draw a perfect square
import turtle t = turtle.Turtle() t.forward(100) t.right(90) t.forward(100)
Output...

Lesson 2: Debugging Loops

🐛 Fix the Square

The code below is broken. The turtle spins in circles! Fix the angle to 90.

Lesson 3: Repeating Shapes

import turtle t = turtle.Turtle() n = 10 for i in range(5): for j in range(3): t.forward(n) t.right(120) n = n + 10

Lesson 4: Variables & Input

import turtle length = int(input("How big?")) t = turtle.Turtle() t.forward(length)

Lesson 5: Subroutines

import turtle t = turtle.Turtle() def square(): for i in range(4): t.forward(30) t.right(90) square()

Lesson 6: Turtle Star

import turtle t = turtle.Turtle() t.speed(0) for i in range(50): t.forward(i * 10) t.right(144)

Lesson 7: Random Art

import turtle import random t = turtle.Turtle() x = random.randint(1, 2) if x == 1: t.pencolor("red") else: t.pencolor("blue") t.forward(100)

Y6 Lesson 1: Maths Functions

score = 10 bonus = 5 multiplier = 2 total = (score + bonus) * multiplier - 5 print('Final Score:', total)

Y6 Lesson 2: Text Adventure

print('You are in a dark cave.') choice = input('Go Left or Right?') if choice == 'Left': print('Win!') else: print('Lose!')

Y6 Lesson 3: Escape Sequences

print("Q: Clip?\nA: Horse.")

Y6 Lesson 4: While Loops

lines = 1 while lines < 5: print("I must not talk") lines = lines + 1

Y6 Lesson 5: Comments & Vars

# Comment children = 30 sweets = 5 print(children * sweets)

Y6 Lesson 6: Inputs

name = input("Name?") print("Hello", name)

Y6 Lesson 7: Magic 8 Ball

import random print("Ask...") input() print(random.choice(['Yes','No']))

Y6 Lesson 8: Text Adventure+

print('Story logic here...')

Y6 Lesson 9: Functions

def greet(): print('Hello') greet()

Y6 Lesson 10: Password Gen

import random print(random.choice("abc123"))

Y6 Lesson 11: Tkinter Game

import turtle wn = turtle.Screen() p1 = turtle.Turtle() p1.forward(50)