Lists

This lesson highlights the key features of the list data structure.

Structure

The list is perhaps the most commonly used data structure in Python. It allows us to store elements of different data types in one container.

The contents of a list are enclosed by square brackets, [].

Lists are ordered, like strings. Elements are stored linearly at a specific index.

Get hands-on with 1200+ tech skills courses.