Python Programming Challenges
292 free challenges for GCSE Computer Science students. Perfect for OCR and AQA students looking to practise Python programming, or anyone who wants to sharpen their coding skills.
☰ Browse by Topic
Turtle Graphics
Drawing shapes, patterns, and pictures using Python's turtle module.
Draw a Square
Use turtle graphics to draw a square with sides of 100 pixels.
Draw an Equilateral Triangle
Use turtle graphics to draw an equilateral triangle with sides of 150 pixels.
Colourful Shape Collection
Draw three shapes in different colours - a red square, a blue triangle, and a green circle.
Draw a Five-Pointed Star
Use turtle graphics to draw a five-pointed star with yellow fill.
Growing Spiral Pattern
Draw a colourful square spiral where each side gets longer as it goes.
Hexagon Flower Pattern
Draw a flower pattern by rotating a hexagon around a central point.
Draw a House with Garden
Draw a house with a triangular roof, a door, a window, and a simple garden with flowers.
Olympic Rings
Draw the five Olympic rings in their correct colours and overlapping positions.
Dartboard Target
Draw a dartboard with concentric coloured rings, a bullseye, and scoring labels.
Draw a Rectangle
Draw a rectangle 150 wide and 80 tall using forward and right, with no loop.
Zigzag Path
Draw a zigzag of six lines by turning left and right alternately.
Draw a Pentagon
Draw a regular pentagon with a loop, working the turn out from 360 divided by the number of sides.
Dashed Road Marking
Draw a dashed line by lifting and lowering the pen inside a loop.
Fill a Flag
Draw a flag on a pole with the flag filled in a solid colour.
A Square in Each Corner
Place a small square at four given coordinates using setposition.
Nested Squares Target
Draw three squares inside one another, all sharing the same centre.