ThinkPython Basic Flashcards
Refresh my Python knowledge
Operator
Special symbols that represent computations like addition and multiplication.
Division
/
Multiplication
*
Exponentiation (raises number to a power)
**
Types of values
integer
floating point number
string
Interpreter
A program that reads another program and executes it
Integer
Type that represents whole numbers
floating-point
Type that represents numbers with fractional parts.
String
Type that represents a sequence of characters
Variable
A name that refers to a value.
Assignment statement
Creates a new variable and gives it a value.
State diagram
A way to represent variables on paper by drawing an arrow from a variable to its value. It shows the state of each variable.
Keyword
Used by the interpreter to recognize the structure of the program, they cannot be used as variable names.
Expression
A combination of values, variables, and operators.
*Values and variables are considered expressions by themselves.
Evaluate
The interpreter does this to find the value of an expression given in the prompt.