Skip to content
PlayOwl

Coding · Grade 4

Loops and Reusable Patterns

Fourth graders use counting loops (FOR i FROM 1 TO n), accumulate totals, counts and the biggest value so far, combine loops with decisions to count values that pass a test, and replace copied-and-pasted code with loops that capture the repeating pattern.

  • 4 lessons
  • About 85 minutes
  • Loops check: 8 questions
  • Ways to answer: program with blocks, choose an answer, put code in order, trace code and type a number
Try it now (no account) One of the five free starter courses Open in PlayOwl

What learners will discover

  • Use a counting loop and predict its output and how many times it runs.
  • Use loops to accumulate a total, a count or the biggest value so far.
  • Combine loops and decisions, for example to count values that pass a test.
  • Replace copy-pasted code with a loop that captures the repeating pattern.

Lessons

  1. Counting loops 4 steps2 practiceabout 16 min
  2. Accumulating 5 steps3 practiceabout 16 min
  3. Loops with decisions 5 steps3 practiceabout 16 min
  4. Reusable patterns 4 steps2 practiceabout 16 min
  5. Loops check 8 questions at the end

Keep exploring

Games to practice with

More 4th grade coding

Guide for grown-ups