click below
click below
Normal Size Small Size show me how
2 - Python Data
How to Think Like a Computer Scientist
| Term | Definition |
|---|---|
| assignment statement | statement that assigns a value to a name (variable) |
| assignment token | = |
| 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. |
| data type | class; a set of values |
| decrement | decrease by 1 |
| evaluate | To simplify an expression by performing the operations in order to yield a single value |
| expression | a combination of operators and operands (variables and values) that represents a single result value |
| float | a Python data type which stores floating-point numbers |
| increment | Both as a noun and as a verb, increment means to increase by 1. |
| initialization (of a variable) | To initialize a variable is to give it an initial value |
| int | a Python data type that holds positive and negative whole numbers |
| integer division | An operation that divides one integer by another and yields an integer |
| keyword | A reserved word that is used by the compiler to parse program |
| modulus operator | Gives the remainder after performing integer division |
| object | The fundamental things that programs are designed to manipulate |
| 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 |
| prompt string | used during interactive input to provide the use with hints as to what type of value to enter |
| reference diagram | A picture showing a variable with an arrow pointing to the value (object) that the variable refers to |
| rules of precedence | The set of rules governing the order in which expressions involving multiple operators and operands are evaluated. |
| state snapshot | A graphical representation of a set of variables and the values to which they refer, taken at a particular instant during the program’s execution |
| statement | An instruction that the Python interpreter can execute |
| str | a Python data type that holds a string of characters |
| type conversion function | a function that can convert a data value from one type to another |
| value | a number or string that can be stored in a variable or computed in an expression |
| variable | a name that refers to a value |
| variable name | a name given to a variable that describe their use in the program |