This page intentionally left blank Python for Software Design



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

2.11
GLOSSARY
assignment: A statement that assigns a value to a variable.
comment: Information in a program that is meant for other programmers (or anyone
reading the source code) and has no effect on the execution of the program.
concatenate: To join two operands end-to-end.
evaluate: To simplify an expression by performing the operations in order to yield
a single value.
expression: A combination of variables, operators, and values that represents a
single result value.
floating-point: A type that represents numbers with fractional parts.


2.12 Exercises
19
floor division: The operation that divides two numbers and chops off the fraction
part.
integer: A type that represents whole numbers.
keyword: A reserved word that is used by the compiler to parse a program; you
cannot use keywords like if, def, and while as variable names.
operand: One of the values on which an operator operates.
operator: A special symbol that represents a simple computation like addition,
multiplication, or string concatenation.
rules of precedence: The set of rules governing the order in which expressions
involving multiple operators and operands are evaluated.
state diagram: A graphical representation of a set of variables and the values they
refer to.
statement: A section of code that represents a command or action. So far, the
statements we have seen are assignments and print statements.
string: A type that represents sequences of characters.
type: A category of values. The types we have seen so far are integers (type int),
floating-point numbers (type float), and strings (type str).
value: One of the basic units of data, like a number or string, that a program
manipulates.

tải về 1.38 Mb.

Chia sẻ với bạn bè của bạn:
1   ...   9   10   11   12   13   14   15   16   ...   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