Shared Flashcard Set

Details

Python functions
Functions in python
16
Computer Science
9th Grade
11/06/2009

Additional Computer Science Flashcards

 


 

Cards

Term
traceback
Definition
A list of the functions that are executing, printed when a runtime error occurs.
Term
frame
Definition
A box in a stack diagram that represents a function call. It contains the local variables and parameters of the function.
Term
stack diagram
Definition
A graphical representation of a stack of functions, their variables, and the values to which they refer.
Term
local variable
Definition
A variable defined inside a function. A local variable can only be used inside its function.
Term
parameter
Definition
A name used inside a function to refer to the value passed as an argument.
local variable
Term
flow of execution
Definition
The order in which statements are executed during a program run.
Term
function definition
Definition
A statement that creates a new function, specifying its name, parameters, and the statements it executes.
Term
function
Definition
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.
Term
dot notation
Definition
The syntax for calling a function in another module, specifying the module name followed by a dot (period) and the function name.
Term
module
Definition
A file that contains a collection of related functions and classes.
Term
type coercion
Definition
A type conversion that happens automatically according to Python's coercion rules.
Term
type conversion
Definition
An explicit statement that takes a value of one type and computes a corresponding value of another type.
Term
return value
Definition
The result of a function. If a function call is used as an expression, the return value is the value of the expression.
Term
argument
Definition
A value provided to a function when the function is called. This value is assigned to the corresponding parameter in the function.
Term
function call
Definition
A statement that executes a function. It consists of the name of the function followed by a list of arguments enclosed in parentheses.
Term
The syntax for a function definition is:
Definition
def NAME( LIST OF PARAMETERS ):
STATEMENTS
Supporting users have an ad free experience!