One of the operators that combines boolean expressions: and, or, and not.
Back
program
Front
A set of instructions that specifies a computation
Back
expression
Front
A combination of variables, operators, and values that represents a single result value.
Back
integer
Front
A type that represents whole numbers.
Back
semantics
Front
The meaning of a program
Back
guardian pattern
Front
Where we construct a logical expression with additional comparisons to take advantage of the short-circuit behavior.
Back
problem solving
Front
The process of formulating a problem, finding a solution, and expressing the solution
Back
compile
Front
To translate a program written in a high-level language into a low-level language, in preparation for later execution
Back
floating point
Front
A type that represents numbers with fractional parts.
Back
comment
Front
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
Back
body
Front
The sequence of statements within a compound statement.
Back
rules of precedence
Front
The set of rules governing the order in which expressions involving multiple operators and operands are evaluated.
Back
statement
Front
A section of code that represents a command or action. So far, the statements we have seen are assignments and print statements.
Back
Interactive mode
Front
A way of using the Python interpreter by typing commands and expressions at the prompt.
Back
nested conditional
Front
A conditional statement that appears in one of the branches of another conditional statement.
Back
assignment
Front
A statement that assigns a value to a variable.
Back
portability
Front
A property of a program that can run on more than one kind of computer.
Back
string
Front
A type that represents sequences of characters
Back
compound statement
Front
A statement that consists of a header and a body. The header ends with a colon (:). The body is indented relative to the header.
Back
concatenate
Front
To join two operands end-to-end.
Back
condition
Front
The boolean expression in a conditional statement that determines which branch is executed.
Back
print function
Front
An instruction that causes the Python interpreter to display a value on the screen.
Back
modulus operator
Front
An operator, denoted with a percent sign ( %), that works on integers and yields the remainder when one number is divided by another.
Back
prompt
Front
When a program displays a message and pauses for the user to type some input to the program
Back
operand
Front
One of the values on which an operator operates.
Back
type
Front
A category of values. The types we have seen so far are integers (type int), floating-point numbers (type float), and strings (type str).
Back
keyword
Front
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.
Back
interpret
Front
To execute a program in a high-level language by translating it one line at a time
Back
source code
Front
A program in a high-level language before being compiled.
Back
branch
Front
One of the alternative sequences of statements in a conditional statement.
Back
boolean expression
Front
An expression whose value is either true or false.
Back
chained conditional
Front
A conditional statement with a series of alternative branches.
Back
main memory
Front
Stores programs and data. Main memory loses its information when the power is turned off
Back
mnemonic
Front
A memory aid. We often give variables mnemonic names to help us remember what is stored in the variable
Back
low-level language
Front
A programming language that is designed to be easy for a computer to execute; also called machine language or assembly language.
Back
semantic error
Front
An error in a program that makes it do something other than what the programmer intended.
Back
variable
Front
A name that refers to a value.
Back
conditional statement
Front
A statement that controls the flow of execution depending on some condition.
Back
value
Front
One of the basic units of data, like a number or string, that a program manipulates.
Back
high-level language
Front
A programming language like Python that is designed to be easy for humans to read and write.
Back
Central Processing Unit (CPU)
Front
The heart of any computer. It is what run the software that we write; also called "CPU" or "the processor"
Back
bug
Front
An error in a program.
Back
secondary memory
Front
Stores programs and data and retains its information even when the power is turned off. Generally slower than main memory. Examples of secondary memory include disk drives and flash memory in USB sticks
Back
Machine Code
Front
The lowest-level language for software, which is the language that is directly executed by the central processing unit
Back
short circuit
Front
When Python is part-way through evaluating a logical expression and stops the evaluation because Python knows the final value for the expression without needing to evaluate the rest of the expression.
Back
comparison operator
Front
One of the operators that compares its operands: ==, !=, >, <, >=, and <=.
Back
traceback
Front
A list of the functions that are executing, printed when an exception occurs.
Back
parse
Front
To examine a program and analyze the syntactic structure.
Back
evaluate
Front
To simplify an expression by performing the operations in order to yield a single value.
Back
operator
Front
A special symbol that represents a simple computation like addition, multiplication, or string concatenation.
Back
Section 2
(25 cards)
module object
Front
A value created by an import statement that provides access to the values defined in a module.
Back
increment
Front
An update that increases the value of a variable (often by one).
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
accumulator
Front
A variable used in a loop to add up or accumulate a result.
Back
Front
Back
fruitful function
Front
A function that returns a value.
Back
dot notation
Front
The syntax for calling a function in another module by specifying the module name followed by a dot (period) and the function name.
Back
function call
Front
A statement that executes a function. It consists of the function name followed by an argument list.
Back
algorithm
Front
A general process for solving a category of problems.
Back
decrement
Front
An update that decreases the value of a variable.
Back
parameter
Front
A name used inside a function to refer to the value passed as an argument.
Back
import statement
Front
A statement that reads a module file and creates a module object.
Back
deterministic
Front
Pertaining to a program that does the same thing each time it runs, given the same inputs.
Back
void function
Front
A function that does not return a value.
Back
function object
Front
A value created by a function definition. The name of the function is a variable that refers to a function object.
Back
initialize
Front
An assignment that gives an initial value to a variable that will be updated.
Back
header
Front
The first line of a function definition.
Back
pseudorandom
Front
Pertaining to a sequence of numbers that appear to be random, but are generated by a deterministic program.
Back
body
Front
The sequence of statements inside a function definition.
Back
function definition
Front
A statement that creates a new function, specifying its name, parameters, and the statements it executes.
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
iteration
Front
Repeated execution of a set of statements using either a function that calls itself or a loop.
Back
infinite loop
Front
A loop in which the terminating condition is never satisfied or for which there is no terminating condition.
Back
composition
Front
Using an expression as part of a larger expression, or a statement as part of a larger statement.
Back
counter
Front
A variable used in a loop to count the number of times something happened. We initialize a counter to zero and then increment the counter each time we want to "count" something.
Back
flow of execution
Front
The order in which statements are executed during a program run.