Week 8 ยท 45-60 min

Functions

Week Summary

A quick preview of the main ideas in this week before you begin the slides.

  • What Is a Function?
  • Defining a Function
  • Calling a Function
  • Parameters and Arguments

Glossary

Review these key terms before starting this week. They are kept simple so students can learn the new vocabulary before moving into the slides.

What Is a Function?
What Is a Function?
Defining a Function
Defining a Function
Calling a Function
Calling a Function
Slide 1๐Ÿ’ก

What Is a Function?

Learning goal

Organize code into reusable functions.

Read one card at a time. Focus on the main idea first, then look at the visual on the right to help it stick.

A function is a reusable block of code.

It is defined once and can be called many times.

Functions help organize and simplify programs.

They reduce repeated code.

Functions can take input and return output.

Remember

Functions help you turn repeated logic into clear, reusable pieces.

What Is a Function?

What Is a Function?

Slide 1 of 8

Use arrows or dots to move through the lesson

Practice

  1. Write 2-3 sentences about what you learned this week.

Coming Next Week: Next: Dictionaries