Erstellt von Troy Bowlin
vor mehr als 8 Jahre
|
||
Frage | Antworten |
Aliases | Multiple variables that contain references to the same object. |
Clone | To 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. |
Delimiter | A character or string used to indicate where a string should be split. |
Element | One of the values in a list (or other sequence). The bracket operator selects elements of a list. Also called item. |
Immutable data value | A data value which cannot be modified. Assignments to elements or slices (sub-parts) of immutable values cause a runtime error. |
Index | An integer value that indicates the position of an item in a list. Indexes start from 0. |
Item | also referred to as an element |
List | A 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. |
List Traversal | The sequential accessing of each element in a list. |
Modifier | A function which changes its arguments inside the function body. Only mutable types can be changed by modifiers. |
Mutable Data Value | A 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. |
Nested List | A list that is an element of another list. |
Object | A thin to which a variable can refer. |
Pattern | A 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". |
Promise | An 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. |
Pure Function | A function which has no side effects. Pure functions only make changes to the calling program through their return values. |
Sequence | Any of the data types that consist of an ordered collection of elements, with each element identified by an index. |
Side Effect | A change in the state of a program made by calling a function. Side effects can only be produced by modifiers. |
Step Size | The 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. |
Möchten Sie mit GoConqr kostenlos Ihre eigenen Karteikarten erstellen? Mehr erfahren.