Computer Science · Ch 9 — Lists
List Operations
9.2
List Operations
The list data type lets you manipulate its contents through a family of operations, each covered in its own sub-section:
- Concatenation (9.2.1) — join two or more lists into one with the
+operator. - Repetition (9.2.2) — replicate a list a given number of times with the
*operator. - Membership (9.2.3) — test whether an element is present in a list with
inandnot in. …