LISTS and TUPLES
Topics
Topics (cont’d.)
Sequences
Introduction to Lists
Introduction to Lists (cont’d.)
The Repetition Operator and Iterating over a List
Indexing
The len function
Lists Are Mutable
list[1] = new_value can be used to assign a new value to a list element
Concatenating Lists
List Slicing
Finding Items in Lists with the in Operator
List Methods and Useful Built-in Functions
List Methods and Useful Built-in Functions (cont’d.)
List Methods and Useful Built-in Functions (cont’d.)
Copying Lists
Copying Lists (cont’d.)
Processing Lists
Processing Lists (cont’d.)
Two-Dimensional Lists
Two-Dimensional Lists (cont’d.)
Two-Dimensional Lists (cont’d.)
Tuples
Tuples (cont’d.)
Tuples (cont’d.)
Summary