Shared Flashcard Set

Details

10-Tuples
Python for Informatics - Dr. Charles Severance
10
Computer Science
Not Applicable
08/09/2015

Additional Computer Science Flashcards

 


 

Cards

Term
comparable
Definition
A type where one value can be checked to see if it is greater than, less than, or equal to another value of the same type. Types which are comparable can be put in a list and sorted.
Term
data structure
Definition
A collection of related values, often organized in lists, dictionaries, tuples, etc.
Term
DSU:
Definition
Abbreviation of “decorate-sort-undecorate”, a pattern that involves build- ing a list of tuples, sorting, and extracting part of the result.
Term
gather
Definition
The operation of assembling a variable-length argument tuple.
Term
hashable
Definition
A type that has a hash function. Immutable types like integers, floats, and strings are hashable; mutable types like lists and dictionaries are not.
Term
scatter
Definition
The operation of treating a sequence as a list of arguments.
Term
shape (of a data structure):
Definition
A summary of the type, size, and composition of a data structure.
Term
singleton
Definition
A list (or other sequence) with a single element.
Term
tuple
Definition
n immutable sequence of elements.
Term
tuple assignment
Definition
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.
Supporting users have an ad free experience!