Module 3 · Boolean values, conditional execution, loops, lists and list processing, logical and bitwise operations
Operations on lists
The surprising truth about how lists are stored — why copying a name doesn't copy the list — and the everyday tools that follow from it: powerful slices, negative indices, and the in operator.
Begin lesson 1 →- 1Lists are referencesThe surprise that bites everyone: copying a list name doesn't copy the list.→
- 2Powerful slicesstart:stop:step — copy a list, replace a stretch, or delete one.→
- 3Slices with negative indicesCount from the end inside a slice, without knowing the length.→
- 4The in and not in operatorsAsk a list whether it contains a value — and get a clean True or False.→
- 5ExamplesReferences, slices and in, put to work on real little problems.→