Skip to content
PlayOwl

Coding · Grade 4

Functions with Simple Inputs

Fourth graders define their own blocks (functions) and call them to reuse steps, give blocks inputs so one block can do slightly different jobs, trace programs that call functions (including from loops), and use Bolt's dance block to reuse a group of moves in a robot program.

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

What learners will discover

  • Define a named block (a function) and call it to reuse a group of steps.
  • Use an input (parameter) so that one block can do slightly different jobs.
  • Trace programs that call functions with different inputs, including calls inside loops.
  • Use Bolt's dance block to reuse a group of moves needed in several places.

Lessons

  1. Define a block, then call it 4 steps2 practiceabout 16 min
  2. Blocks with inputs 5 steps3 practiceabout 16 min
  3. Tracing calls 4 steps2 practiceabout 16 min
  4. Bolt's dance block 5 steps2 practiceabout 17 min
  5. Functions check 8 questions at the end

Keep exploring

Games to practice with

More 4th grade coding

Guide for grown-ups