Everything you need before the bell rings
Learning Objectives
Students will be able to…
- ✓Define a function.
- ✓Explain parameters and returns.
- ✓Explain calling a function.
- ✓Use a function.
Great coders don’t repeat themselves. Instead of writing the same code over and over, they package it into a function they can reuse. What is a function, and why is it so powerful?
The Functions Explorer
Project this and tap each idea. Have students explore what a function is, why to use one, and how it works.
45 minutes, five moves
Tap any phase to open the teacher moves and student actions.
Hook — Don’t Repeat Yourself
Great coders don’t repeat code — they package it. How?
👩🏫 Teacher Moves
- Show repeated code.
- Ask for a shortcut.
- Set the goal.
🎒 Student Actions
- See it.
- Wonder.
- Predict.
Unplugged — Unplug It
Students practice.
👩🏫 Teacher Moves
- Write a “recipe” function together.
- Give it an input.
- “Call” it.
🎒 Student Actions
- Write it.
- Give input.
- Call it.
Use — Explore Functions
Students use.
👩🏫 Teacher Moves
- Send students to the Functions Explorer.
- Note parameters and returns.
- Note calling.
🎒 Student Actions
- Tap each.
- Note them.
- Explain.
Modify — Reuse It
Students modify.
👩🏫 Teacher Moves
- Call a function with new inputs.
- Predict the outputs.
- Explain reuse.
🎒 Student Actions
- Call it.
- Predict.
- Explain.
Create — Create
Students conclude.
👩🏫 Teacher Moves
- Write a simple function.
- Call it twice.
- Complete the exit ticket.
🎒 Student Actions
- Write it.
- Call it.
- Complete the exit ticket.
Built to the standards you report on
Aligned to the CSTA K-12 Computer Science Standards and ISTE Standards for Students.
Create procedures/functions to organize code and hide detail.
Incorporate existing code and functions.
Use variables and functions together.
Computational Thinker.
One lesson, every learner
Multilingual Learners
- Function “recipe” cards.
- Sentence frame: “The function ___ does ___.”
- Use a recipe analogy.
Support & Access
- Start with “call it by name.”
- Use a simple example.
- Focus on reuse.
Stretch & Extend
- Write a function with parameters.
- Return a value.
- Combine functions.
What to gather
- 📽️Projector / board
- 🧰Recipe-function cards
- 💻The Functions Explorer
- 💻Coding tool (optional)
- ✏️Pencils
- 🎫Exit-ticket slips
Key terms — hover for a quick definition
Exit Ticket
Preview the three formative checks. Tap “Sample answer” to see what mastery looks like — hide them before you print for students.
Create: write a function.
Have students write (in plain language or code) a simple function like “greet(name)” and show how calling it with different names works. A printable functions sheet is in the Computer Science library.
Study the key terms
Tap a card to flip it, then rate whether you knew it. Built from this lesson’s vocabulary.
Nice work!
Check your understanding
A quick self-check with instant feedback, drawn from this lesson’s key terms.
Nice work!
Printable worksheet
A print-and-go review sheet with a built-in answer key. Tap “Show answer key” to reveal answers, or print the clean version for students.
Part A · Write the word that matches each meaning
- the value passed to a parameter
- the result a function gives back
- to write a function
- a named, reusable block of code
- an input a function accepts
- to use the same code again
- another name for a function
- to run a function by name
Part B · Show what you learned
- What is a function?
- What is a parameter?
- Why do coders use functions?
Part B: 1) A named, reusable block of code that does a specific job. 2) An input you give a function so it works with different information. 3) To reuse code, save time, reduce mistakes, and keep programs organized.