Chapter Two - Variables, Expressions, Statements Flashcards
Value
One of the basic units of data (ex: number, string) that a program manipulates
Type
A category of values (ex: integers - int, floating-point numbers- float, string- str)
Integer
A type that represents whole numbers
Floating-point
A type that represents numbers with fractional parts
String
A type that represents sequences of characters
Variable
A name that refers to a value
Statement
A section of code that represents a command or action. (ex: assignments/print statements)
Assignment
A statement that assigns value to a variable
State Diagram
A graphical representation of a set of variables and the values they refer to
Keyword
A reserved word that is used by the compiler to parse a program you cannot use these names as variables
Operator
A special symbol that represents a simple computation like addition, multiplication, or string concatenation
Operand
One of the values on which an operator operates
Floor Division
The operation that divides two numbers and chops off the fraction part
Expression
A combination of variables, operators, and values that represent a single result value
Concatenate
To join two operands end-to-end