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

Iteration Worksheets

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

WorksheetSeries · 5 parts

Python Turtle (named Turtle)

Includes TUR-02 Shape Machine — named Turtle

Use repetition to turn a sequence of named-Turtle instructions into regular shapes. Students will: - identify the repeated steps in a shape - use counting loops to reduce repeated code - control a shape with variables Inside: worked examples, objective checks and practical Turtle challenges. Series: Python Turtle (named Turtle), part 2 of 6.

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

KS3IterationVariablesGraphics and turtle
WorksheetSeries · 5 parts

Python Turtle (direct functions)

Includes TUR-02 Shape Machine — direct functions

Use repetition to turn a sequence of Turtle instructions into regular shapes. Students will: - identify the repeated steps in a shape - use counting loops to reduce repeated code - control a shape with variables Inside: worked examples, objective checks and practical Turtle challenges. Series: Python Turtle (direct functions), part 2 of 6.

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

KS3IterationVariablesGraphics and turtle
WorksheetSeries · 3 parts

H446 2.2.1 · Programming techniques

Includes OCR H446 2.2.1 Control structures in OCR and Python

OCR H446 2.2.1 expects students to move between OCR's exam reference language and Python, where the same loop can carry different boundaries. This worksheet builds the sequence, selection and iteration model first, makes the FOR and range boundary difference explicit, then asks students to construct control flow from a stated requirement. Students will: - identify sequence, selection and iteration in a described requirement - translate OCR exam reference language loop boundaries into the equivalent Python range - trace a timetable algorithm and record how its state changes on each pass - write Python selection that assigns values across several discrete cases - recommend a loop type when the number of attempts is not known in advance and justify it Inside: 7 explanation cells, 2 multiple-choice questions, 1 fill-in-the-blanks cell, 2 written answers, 2 Python tasks and 1 trace table. 16 marks, about 25 to 35 minutes. Series: H446 2.2.1 · Programming techniques, part 1 of 14.

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

A LevelOCRSelectionIteration
WorksheetSeries · 3 parts

1CP2-CT-2 · Selection, strings and while loops

Includes 1CP2-CT-2.6 Understanding condition-controlled while loops

The reading worksheet for condition-controlled loops, taken one complete pass at a time before any are written. Students will: - identify the three parts every while loop needs - trace a loop pass by pass and state every output - say when a pre-condition loop executes zero times - diagnose a non-terminating loop and give the fixing line - predict the final output of a loop from its listing Inside: 7 explanation cells, 3 multiple-choice questions, 2 fill-in-the-blanks cells and 3 written answers. 17 marks, about 45 minutes. Series: 1CP2-CT-2 · Selection, strings and while loops, part 6 of 8.

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

GCSEEdexcelIterationTrace tables
WorksheetSeries · 3 parts

1CP2-CT-3 · Lists, iteration and subprograms

Includes 1CP2-CT-3.3 For loops and range

The count-controlled loop worksheet, reading range() precisely before writing loops with it. Students will: - read the start, stop and step of a range correctly - predict the exact output of a for loop - explain why the stop value is not generated - construct a loop that repeats an exact number of times - use a loop to repeat processing, not only output Inside: 7 explanation cells, 2 multiple-choice questions, 2 Python tasks, 2 fill-in-the-blanks cells and 2 written answers. 19 marks, about 45 minutes. Series: 1CP2-CT-3 · Lists, iteration and subprograms, part 3 of 7.

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

GCSEEdexcelIterationPractice
Worksheet

1CP2-CT-4.3 Traversing two-dimensional lists

Part 3 · 1CP2-CT-4 · Structures, validation and search

The traversal worksheet, where the outer loop chooses the row and the inner loop chooses the field. Students will: - calculate how many times an inner-loop body executes - trace a nested traversal that accumulates a total - process one field from every record - choose the smallest traversal a requirement actually needs - explain the effect of resetting a total inside the row loop Inside: 6 explanation cells, 2 multiple-choice questions, 1 Python task, 1 trace table, 1 fill-in-the-blanks cell and 2 written answers. 14 marks, about 45 minutes. Series: 1CP2-CT-4 · Structures, validation and search, part 3 of 7.

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

GCSEEdexcelIterationData structures
Worksheet

1CP2-CT-5.2 Merging sorted lists with while

Part 2 · 1CP2-CT-5 · Merge sort, files and authentication

The implementation worksheet, advancing one pointer at a time and dealing with whatever is left over. Students will: - advance the correct pointer after each comparison - trace a merge and record the growing output - construct a complete merge of two sorted lists - decide what merging equal values should produce - explain why two remainder loops are needed Inside: 6 explanation cells, 3 multiple-choice questions, 1 Python task, 1 trace table, 1 fill-in-the-blanks cell and 2 written answers. 15 marks, about 45 minutes. Series: 1CP2-CT-5 · Merge sort, files and authentication, part 2 of 7.

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

GCSEEdexcelIterationSearching and sorting
Worksheet

1CP2-CT-7.1 Programming constructs reactivation

Part 1 · 1CP2-CT-7 · Subprograms, scope and libraries

The later-course reactivation worksheet, joining sequence, selection and iteration back into one working program. Students will: - read a program by the state it changes rather than by its keywords - predict the exact output of an accumulator and counter loop - choose between a for loop and a while loop from the problem - identify why a while loop fails to terminate and correct it - construct an integrated program that totals and counts in one pass Inside: 6 explanation cells, 3 multiple-choice questions, 1 Python task, 1 trace table, 1 fill-in-the-blanks cell and 2 written answers. 15 marks, about 45 minutes. Series: 1CP2-CT-7 · Subprograms, scope and libraries, part 1 of 5.

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

GCSEEdexcelIterationPractice
Worksheet

J277 2.2.3 Processing arrays with loops

Part 3 · J277 2.2.3 · Strings, arrays and functions

The loop patterns that appear in almost every OCR array question. Students will: - total and average the values in a list - count values that meet a condition - find a maximum or minimum correctly - update every element with a loop - debug a faulty minimum-finding algorithm Inside: 6 explanation cells, 4 runnable Python tasks, 3 multiple-choice questions and 2 written answers. 18 marks, about 45 minutes. Series: J277 2.2.3 · Strings, arrays and functions, part 3 of 5.

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

GCSEOCRIterationLists and arrays
WorksheetSeries · 3 parts

J277 2.2.1-2.2.2 · Programming fundamentals

Includes J277 2.2.1 Count-controlled iteration

Count-controlled iteration, used when the number of repetitions is known before the loop starts. Students will: - explain when a count-controlled loop is the right choice - use range() with one, two and three arguments - accumulate a running total inside a loop - predict how many times a loop body runs - generate a sequence from a stated requirement Inside: 7 explanation cells, 3 runnable Python tasks, 3 multiple-choice questions, 1 fill-in-the-blanks cell and 2 written answers. 16 marks, about 45 minutes. Series: J277 2.2.1-2.2.2 · Programming fundamentals, part 5 of 7.

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

GCSEOCRIterationIntroduction