SetsΒΆ

A list is a tool for storing a sequence of values. The individual values contained within a list are called the elements or items of the list.

To define a list in Python, we write the elements of the list between a pair of square braces, separated by commas.In the cell below, we create a list containing strings representing the names of each of the eight planets in our solar system. We will store the list in the variable planets.