Before you keep reading...
Runestone Academy can only continue if we get support from individuals like you. As a student you are well aware of the high cost of textbooks. Our mission is to provide great books to you for free, but we ask that you consider a $10 donation, more if you can or less if $10 is a burden.
Before you keep reading...
Making great stuff takes time and $$. If you appreciate the book you are reading now and want to keep quality materials free for other students please consider a donation to Runestone Academy. We ask that you consider a $10 donation, but if you can give more thats great, if $10 is too much for your budget we would be happy with whatever you can afford as a show of support.
Multiple variables that contain references to the same object.
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.
A character or string used to indicate where a string should be split.
One of the values in a list (or other sequence). The bracket operator selects elements of a list.
An integer variable or value that indicates an element of a list.
A collection of objects, where each object is identified by an index. Like other types
float, etc. there is also a
listtype-converter function that tries to turn its argument into a list.
- list traversal¶
The sequential accessing of each element in a list.
A function which changes its arguments inside the function body. Only mutable types can be changed by modifiers.
- mutable data type¶
A data type in which the elements can be modified. All mutable types are compound types. Lists are mutable data types; strings are not.
- nested list¶
A list that is an element of another list.
A thing to which a variable can refer.
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”.
- pure function¶
A function which has no side effects. Pure functions only make changes to the calling program through their return values.
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 that is not a result of reading the return value from the function. Side effects can only be produced by modifiers.
A sequential collection of items, similar to a list. Any python object can be an element of a tuple. However, unlike a list, tuples are immutable.