Get ahead with a $300 test prep scholarship
| Enter to win by Tuesday 9/24
python - keywords 1
python test 1 computer science
Terms in this set (30)
A set of specific steps for solving a category of problems
an error in a program
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
A programming language like Python that is designed to be easy for humans to read and write.
A programming language that is designed to be easy for a computer to execute; also called machine language or assembly language
A function used in a program or script that causes the Python interpreter to display a value on its output device.
An error that does not occur until the program has started to execute but that prevents the program from continuing.
An error in a program that makes it do something other than what the programmer intended.
The structure of a program
An error in a program that makes it impossible to parse — and therefore impossible to interpret.
contains a string of letters
name that refers to a value
gives value to a variable
define the language's syntax rules and structure, and they cannot be used as variable names
instruction that the Python interpreter can execute
special tokens that represent computations like addition, multiplication and division
%, works on integers (and integer expressions) and gives the remainder when the first number is divided by the second
To simplify an expression by performing the operations in order to yield a single value.
A Python data type that holds positive and negative whole numbers
A Python data type which stores floating-point numbers. Floating-point numbers are stored internally in two parts: a base and an exponent. When printed in the standard format, they look like decimal numbers
flow of execution
The order in which statements are executed during a program run.
A named sequence of statements that performs some useful operation. Functions may or may not take parameters and may or may not produce a result
A name used inside a function to refer to the value which was passed to it as an argument.
A function that returns a Boolean value. The only possible values of the bool type are False and True.
A statement that controls the flow of execution depending on some condition. In Python the keywords if, elif, and else are used for conditional statements.
converts to a string
To repeat an operation on all members of a set from the start to the end.
a value provided to a function when the function is called. This value is assigned to the corresponding parameter in the function.
An operation that divides one integer by another and yields an integer. Integer division yields only the whole number of times that the numerator is divisible by the denominator and discards any remainder.
One of the values in a list (or other sequence). The bracket operator selects elements of a list.