Community

Community resources

Computer science Worksheets and Python Workspaces shared by Coding Pathway teachers. Worksheets cover exam board theory as well as programming. Read any of them in full here. Teachers can copy one into their own lessons and edit it before setting it to a class.

Planning a whole course or unit? Our mapped pages put the teaching sequence in order with the Worksheets that cover it: OCR GCSE Computer Science (J277), Pearson Edexcel GCSE Computer Science (1CP2), OCR A Level Computer Science (H446), Python Turtle for Key Stage 3.

  • 438 resources
  • 3 teachers sharing
  • Creative Commons licensed

Variables Worksheets

6 resources match. Newest first. Opening a resource shows the whole thing, with answers and marking held back.

WorksheetSeries · 6 parts

Python Turtle (named Turtle)

Includes TUR-01 Turtle Steps — named Turtle

Build confidence with a named Python Turtle by turning movement instructions into simple drawings. Students will: - create and control a named Turtle object - combine movement instructions in the correct sequence - store useful drawing values in variables Inside: guided Turtle examples, short checks and practical coding tasks. Series: Python Turtle (named Turtle), part 1 of 6.

By Coding Pathway · 24 cells · 45 min · CC BY-SA 4.0 · Shared 16 Sept 2026

KS3VariablesGraphics and turtleStarter
WorksheetSeries · 6 parts

Python Turtle (direct functions)

Includes TUR-01 Turtle Steps — direct functions

Build confidence with Python Turtle by turning movement instructions into simple drawings. Students will: - use forward movement and turns to control a Turtle - combine instructions in the correct sequence - store useful drawing values in variables Inside: guided Turtle examples, short checks and practical coding tasks. Series: Python Turtle (direct functions), part 1 of 6.

By Coding Pathway · 24 cells · 45 min · CC BY-SA 4.0 · Shared 16 Sept 2026

KS3VariablesGraphics and turtleStarter
WorksheetSeries · 2 parts

H446 2.2.1 · Programming techniques

Includes OCR H446 2.2.1 Variable scope

Two variables can share a name and still be separate storage, which is where H446 2.2.1 scope questions usually turn. Using a live-stream overlay, this worksheet has students read names from the inside out, predict shadowing without running the code, then replace global state with an explicit parameter and return interface. Students will: - identify which local and global bindings are accessible at a given point - predict the output of a program where a local name shadows a global one - explain the difference between a global and a local variable of the same name - refactor a function to receive state as parameters and return the updated value - explain drawbacks of relying heavily on global variables in a larger program Inside: 6 explanation cells, 1 multiple-choice question, 1 fill-in-the-blanks cell, 2 written answers and 2 Python tasks. 15 marks, about 20 to 30 minutes. Series: H446 2.2.1 · Programming techniques, part 5 of 14.

By Coding Pathway · 12 cells · 30 min · CC BY-SA 4.0 · Shared 31 Aug 2026

A LevelOCRVariablesFunctions
Worksheet

OCR H446 1.4.1 Primitive data types and casting

Part 1 · H446 1.4.1 · Data types

OCR H446 1.4.1 asks students to choose a primitive data type from what a value represents and what the program does with it, not from how the value looks. Set in a music-event booking system, this worksheet builds that two-question method and then has students trace what casting really does to a value, including in running Python. Students will: - choose an OCR primitive type from a value's purpose and the operations needed - justify storing a fixed-format identifier as a string rather than an integer - trace the effect of a cast, including the loss of a fractional part - complete a Python function that casts supplied text, calculates a total and returns a set sentence - recall the type and casting definitions in a closed-book check Inside: 10 explanation cells, 2 multiple-choice questions, 2 fill-in-the-blanks cells, 1 written answer and 2 Python tasks. 17 marks, about 40 to 50 minutes. Series: H446 1.4.1 · Data types, part 1 of 11.

By Coding Pathway · 17 cells · 45 min · CC BY-SA 4.0 · Shared 31 Aug 2026

A LevelOCRVariablesData types
Worksheet

1CP2-CT-1.3 First programs, variables and constants

Part 3 · 1CP2-CT-1 · Programming foundations

The first Python worksheet of the course, turning an informal algorithm into working code. Students will: - predict the exact output order of a short program - store values in named variables and read them back - choose between a variable and a constant, and name each conventionally - follow how a value changes as a program runs - write a short program of their own and explain an assignment statement Inside: 9 explanation cells, 2 multiple-choice questions, 3 Python tasks, 2 fill-in-the-blanks cells and 2 written answers. 18 marks, about 45 minutes. Series: 1CP2-CT-1 · Programming foundations, part 3 of 7.

By Coding Pathway · 18 cells · 45 min · CC BY-SA 4.0 · Shared 17 Aug 2026

GCSEEdexcelSequenceVariables
Worksheet

J277 2.2.1 Variables, constants, input and output

Part 1 · J277 2.2.1-2.2.2 · Programming fundamentals

The first programming worksheet: storing values, reading input and producing output. Students will: - assign values to variables and use them later - explain the difference between a variable and a constant - read input and produce readable output - use naming that communicates intent - write a short program from a stated requirement Inside: 5 explanation cells, 3 runnable Python tasks, 2 multiple-choice questions, 1 fill-in-the-blanks cell and 2 written answers. 15 marks, about 45 minutes. Series: J277 2.2.1-2.2.2 · Programming fundamentals, part 1 of 7.

By Coding Pathway · 13 cells · 45 min · CC BY-SA 4.0 · Shared 17 Aug 2026

GCSEOCRSequenceVariables