Everything you need before the bell rings
Learning Objectives
Students will be able to…
- ✓Explain what a function is.
- ✓Put steps inside a named function.
- ✓Call a function to reuse it.
- ✓See why functions save work.
How can you name a group of steps and reuse it?
Build the greet() Function
Project this and have students put the steps inside the function in the right order.
45 minutes, five moves
Tap any phase to open the teacher moves and student actions.
Hook — Why Repeat Yourself?
What if you had to greet 10 people with the same 3 steps?
👩🏫 Teacher Moves
- Write the 3 greeting steps.
- Ask “how could we reuse them?”
- Set the goal.
🎒 Student Actions
- Watch.
- Guess.
- Get ready.
Use — Functions
Students use functions.
👩🏫 Teacher Moves
- Send students to Build the greet() Function.
- Order the steps.
- Name it greet().
🎒 Student Actions
- Order.
- Say.
- Name it.
Modify — Call It Twice
Students modify.
👩🏫 Teacher Moves
- Call greet() once.
- Call greet() again — same steps!
- Count lines saved.
🎒 Student Actions
- Call.
- Call.
- Count.
Create — Make Your Own
Students create.
👩🏫 Teacher Moves
- Design a function (e.g. cheer()).
- List its steps.
- Give it a clear name.
🎒 Student Actions
- Design.
- List.
- Name.
Reflect — Reflect
Students close.
👩🏫 Teacher Moves
- Say what a function is.
- Say why it saves work.
- Complete the exit ticket.
🎒 Student Actions
- Say it.
- Say.
- Complete the exit ticket.
Built to the standards you report on
Aligned to the CSTA K-12 Computer Science Standards and the ISTE Standards for Students.
Decompose a problem into smaller named parts.
Create programs with sequences, events, loops & conditionals.
Modify or remix programs to develop something new.
Break problems into reusable parts.
One lesson, every learner
Multilingual Learners
- Act the steps out as a “routine.”
- Frame: “First… then… finally…”
- Name functions with verbs.
Support & Access
- Use 3 steps, not 4.
- Order two at a time.
- Use picture cards.
Stretch & Extend
- Add an input (greet a name).
- Write a 2nd function.
- Call both in one program.
What to gather
- 📽️Screen / board
- 🧱Step cards
- 💻Build the greet() Function
- 🎮Scratch or paper code
- 📓Notebooks
- 🎫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.
Reflect: functions.
Have students name one function a game might reuse (like jump() or shoot()). A printable functions worksheet 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
- to break a task into smaller parts
- a named group of steps you can reuse
- to create a function and its steps
- one instruction inside the function
- a value you pass into a function
- what you call the function
- to run a function by its name
- to use the same code again
Part B · Show what you learned
- What is a function?
- How do you run a function?
- Why are functions useful?
Part B: 1) A named group of steps you can reuse. 2) You “call” it by its name. 3) They let you reuse steps instead of rewriting them.