Chapter 3: Terms (Python)

Chapter 3: Terms (Python)

memorize.aimemorize.ai (lvl 286)
Section 1

Preview this deck

module

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (15)

Section 1

(15 cards)

module

Front

A file that contains a collection of related functions and classes.

Back

function definition

Front

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

Back

type coercion

Front

A type of conversion that happens automatically according to Python's coercion rules.

Back

return value

Front

The result of a function. If a function call is used as an expression, the return value is the value of the expression.

Back

traceback

Front

A list of the functions that are executing, printed when a runtime error occurs.

Back

function

Front

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.

Back

flow of execution

Front

The order in which statements are executed during a program run.

Back

dot notation

Front

The syntax for calling a function in another module, specifying the module name followed by a dot (period) and the function name.

Back

local variable

Front

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

Back

parameter

Front

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

Back

function call

Front

A statement that executes a function. It consists of the name of the function followed by a list of arguments enclosed in parentheses.

Back

type conversion

Front

An explicit statement that takes a value of one type and computes a corresponding value of another type.

Back

frame

Front

A box in a stack diagram that represents a function call. It contains the local variables and parameters of the function.

Back

argument

Front

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

Back

stack diagram

Front

A graphical representation of a stack of functions, their variables, and the values they refer.

Back