Built-in Data Structures: Lists
Ordered collection of objects (like an array)
They can contain any type of object
They are mutable
E.g.
[] Empty list
[1, ”2”, 3.0] Three-element list
[1, [”2”, 4], 3.0] Nested list
Operators
Access list[index]
Deletion del list[index]
Length len(list)
Previous slide
Next slide
Back to first slide
View graphic version