Chapter 4: Functions Flashcards
A general process for solving a category of problems.
algorithm
A value provided to a function when the function is called. This value is assigned to the corresponding parameter in the function.
argument
The sequence of statements inside a function definition.
body
Using an expression as part of a larger expression, or a statement as part of a larger statement.
composition
Pertaining to a program that does the same thing each time it runs, given the same inputs.
deterministic
The syntax for calling a function in another module by specifying the module name followed by a period and the function name.
dot notation
The order in which statements are executed during a program run.
flow of execution
A function that returns a value.
Value needs to be printed or saved to variable in a script. Displays in interactive mode.
fruitful function
A named sequence of statements that performs some useful operation. May or may not take arguments and may or may not produce a result.
function
A statement that executes a function. It consists of the function name followed by an argument list.
function call
A statement that creates a new function, specifying its name, parameters, and the statements it executes.
function definition
A value created by a function definition. The name of the function is a variable that refers to it.
function object
The first line of a function definition.
header
A statement that reads a module file and creates a module object.
import statement
A value created by an import statement that provides access to the data and code defined in a module.
module object