Chapter 10 Flashcards
list
a sequence of values within brackets (like an array)
element
one of the values in a list (or other sequence), also called items.
index
an integer value that indicates an element in a list.
nested list
a list that is an element of another list
list traversal
the sequential accessing of each element in a list.
mapping
a relationship in which each element of one set corresponds to an element of another set. EG, a list is a mapping from indices to element.s
accumulator
a variable used in a loop to add up or accumulate a result
augmented assignment
a statement that updates the value of a variable using an operator like +=
reduce
a processing pattern that traverses a sequence and accumulates the elements into a single result.
map
a processing pattern that traverses a sequence and performs an operator on each element.
filter
a processing pattern that traverses a list and selects the elements that satisfy some criterion.
object
something a variable can refer to. an object has a type and a value.
equivalent
having the same value.
identical
being the same object (which implies equivalence).
reference
the association between a variable and its value.