Fundamentals Flashcards
Expression
A unit of code that can be evaluated into one value
Statement
A unit of code that is used to execute a change
Variable
A name that is a reference to a specific place in memory, and the value stored there. Variables can be assigned and reassigned values.
Literal
A value that is the value itself.
Integer
Represents an integer! A whole number that is positive, negative or zero.
Float
Represents a number that isn’t whole; it is fractional, or has a decimal place.
String
Represents text, specifically with an ordered sequence of characters.
Boolean
Represents True or False
None
Represents the concept of no value, or the absence of a value.
List
An ordered list of values. Items in the list are sometimes called elements. Lists start at index 0. Can get the value of an item by using square brackets and the index of the item.
Dictionary
An unordered collection of key-value pairs. Can access values in the dictionary by using square brackets and the name of the key.
Range
A sequence of numbers between a start, stop, and incrementing by a step.
Tuple
An ordered, unchangeable collection of items.
Set, frozenset
An unordered collection. Cannot access values with index or key; must use a loop.
bytes, bytearray
A collection of binary digits (bits).