Chapter 18
Functions are at Your Beck and Call
Learning Objectives
Upon completing all the content in this chapter, you should be able to do the following:
- Write a function in Python
- Be able to set default values for function parameters
Key Terminology
Here is a list of key terms for this chapter, broken up by the page upon which the term first appears. Make note of each term as its definition.
Introduction
- function
- encapsulation
- function machine
Calling Functions
- Function call
- arguments
Defining Our Own Functions
def
- function name
- parameter
- function body
Function Output
- return statement
- boolean function
Parameters and Variables
- scope
- shadowing