Chapter 12 Flashcards
tuple
An immutable sequence of elements.
tuple assignment
an assignment with a sequence on the right side and a tuple of variables on the left. The right side is evaluated and then its elements are assigned to the variables on the left.
gather
the operation of assembling a variable-length argument tuple.
scatter
the operation of treating a sequence as a list of arguments.
DSU
abbreviation of ‘decorate-sort-undecorate’, a pattern that involves building a list of tuples, sorting, and extracting part of the result.
data structure
a collection of related values, often organized in lists, dictionaries, tuples, etc.
shape (of a data structure)
a summary of the type, size and composition of a data structure.