Lists

In this lesson, you will learn about the list object and its methods in Python.

Definition

A Python list is an indexable sequence of values, which may not necessarily all be of the same type. The first index is 0. You can create a list by writing a comma-separated sequence of values enclosed in brackets, [].

Here are a few examples of this:

Get hands-on with 1200+ tech skills courses.