SP23-HSCI-234

Class 03 Glossary

function: A named sequence of statements that performs some useful operation. Functions may or may not take arguments and may or may not produce a result.

function definition: A statement that creates a new function, specifying its name, parameters, and the statements it contains.

function header: The first line of a function definition.

function body: The sequence of statements inside a function definition.

function argument: The value(s) given to the function inside the function header parentheses.

parameter: A name used inside a function to refer to the value passed as an argument.

function call: A statement that runs a function. It consists of the function name followed by an argument list in parentheses.

argument: A value provided to a function when the function is called. This value is assigned to the corresponding parameter in the function.

local variable: A variable defined inside a function. A local variable can only be used inside its function.

global variable: A variable defined outside of function. A global variable can be used anywhere in the program using the global keyword.

global keyword: Python keyword to indicate the use of a global variable.