This page intentionally left blank Python for Software Design



tải về 1.38 Mb.
Chế độ xem pdf
trang17/83
Chuyển đổi dữ liệu13.08.2023
Kích1.38 Mb.
#55046
1   ...   13   14   15   16   17   18   19   20   ...   83
- Python for Software Design How to Think Like a Computer Scientist-Cambridge University Press (2009)

3.14
GLOSSARY
argument: A value provided to a function when the function is called. This value is
assigned to the corresponding parameter in the function.
body: The sequence of statements inside a function definition.
composition: Using an expression as part of a larger expression, or a statement as
part of a larger statement.
dot notation: The syntax for calling a function in another module by specifying the
module name followed by a dot (period) and the function name.
flow of execution: The order in which statements are executed during a program
run.
frame: A box in a stack diagram that represents a function call. It contains the local
variables and parameters of the function.
fruitful function: A function that returns a value.
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 call: A statement that executes a function. It consists of the function name
followed by an argument list.
function definition: A statement that creates a new function, specifying its name,
parameters, and the statements it executes.
function object: A value created by a function definition. The name of the function
is a variable that refers to a function object.
header: The first line of a function definition.
import statement: A statement that reads a module file and creates a module
object.
local variable: A variable defined inside a function. A local variable can only be used
inside its function.
module: A file that contains a collection of related functions and other definitions.
module object: A value created by an import statement that provides access to the
values defined in a module.
parameter: A name used inside a function to refer to the value passed as an argument.


3.15 Exercises
33

tải về 1.38 Mb.

Chia sẻ với bạn bè của bạn:
1   ...   13   14   15   16   17   18   19   20   ...   83




Cơ sở dữ liệu được bảo vệ bởi bản quyền ©hocday.com 2024
được sử dụng cho việc quản lý

    Quê hương