This document provides an overview of lists and tuples in Python. It discusses how to create, access, modify, and iterate over lists and tuples. Some key points covered include:
- Lists are mutable sequences that can contain elements of different types. Common list methods allow appending, inserting, removing, and sorting elements.
- Tuples are immutable lists that cannot be modified after creation. They provide count and index methods similar to lists.
- Lists and tuples can be nested to represent multi-dimensional data structures. Iteration over nested lists/tuples requires multiple for loops.
- Examples demonstrate common list/tuple operations like slicing, concatenation, membership testing, and traversing 2D lists to represent matrices for