Lists

Let's look at the list data type in more detail.

Definition

A list is a sequence of values enclosed in square brackets. It is extremely versatile as you can store multiple items of different data types inside of it. A list can also be treated as if it were an array.

Get hands-on with 1400+ tech skills courses.