Karteikarten
Chapter 11 Lists
Karten in diesem Stapel (19)
- 1AliasesMultiple variables that contain references to the same object.
- 2CloneTo create a new object that has the same value as an existing object. Copying a reference to an object creates an alias but doesn't clone the object.
- 3DelimiterA character or string used to indicate where a string should be split.
- 4ElementOne of the values in a list (or other sequence). The bracket operator selects elements of a list. Also called item.
- 5Immutable data valueA data value which cannot be modified. Assignments to elements or slices (sub-parts) of immutable values cause a runtime error.
- 6IndexAn integer value that indicates the position of an item in a list. Indexes start from 0.
- 7Itemalso referred to as an element
- 8ListA collection of values, each in a fixed position within the list. Like other types str, int, float, etc. there is also a list type - converter function that tries to turn whatever argument you give it into a list.
- 9List TraversalThe sequential accessing of each element in a list.
- 10ModifierA function which changes its arguments inside the function body. Only mutable types can be changed by modifiers.
- 11Mutable Data ValueA data value which can be modified. The types of all mutable values are compound types. Lists and dictionaries are mutable; strings and tuples are not.
- 12Nested ListA list that is an element of another list.
- 13ObjectA thin to which a variable can refer.
- 14PatternA sequence of statements, or a style of coding something that has general applicability in a number of different situations. Part of becoming a mature Computer Scientist is to learn and establish the patterns and algorithms that form your toolkit. Patterns often correspond to your "mental chunking".
- 15PromiseAn object that promises to do some work or deliver some values if they're eventually needed, but it lazily puts off doing the work immediately. Calling range produces a promise.
- 16Pure FunctionA function which has no side effects. Pure functions only make changes to the calling program through their return values.
- 17SequenceAny of the data types that consist of an ordered collection of elements, with each element identified by an index.
- 18Side EffectA change in the state of a program made by calling a function. Side effects can only be produced by modifiers.
- 19Step SizeThe interval between successive elements of a linear sequence. The third (and optional argument) to the range function is called the step size. If not specified, its defaults to 1.
Informationen
- Beschreibung
- Der Nutzer hat seine Fachbereichs-Information gelöscht. Karteikarten am Chapter 11 Lists, erstellt von Gelöschter Nutzer am 22/09/2016.
- Erstellt von
- Gelöschter Nutzer · Sep 2016
- Aktualisiert
- 23 Sep 2016
- Aufrufe
- 33
- Verlauf
-
- Erstellt von Troy Bowlin · 20 Mai 2016
- Kopiert von Troy Bowlin · 22 Sep 2016
- Bewertung