Week 6 ยท 45-60 min

Functions

What is a function? Why reuse code?

This slide covers "What is a function? Why reuse code?" as part of Functions. Read slowly and try the example in your own words. What is a function? Why reuse code? is an important step in Coding Fundamentals. We use plain language and short steps so you can learn even on a slow or shared computer. Think of one real example from your school, work, or community.

Key point: What is a function? Why reuse code?. Review this slide once more before moving on.

Slide 1 of 8

Practice

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

Key Terms

What is a function? Why reuse code?
What is a function? Why reuse code?
Defining a function with def
Defining a function with def
Calling a function
Calling a function

Week Summary

  • What is a function? Why reuse code?
  • Defining a function with def
  • Calling a function
  • Parameters and arguments

Coming Next Week: Next: Reading & Fixing Errors