14.2 Examples of Lists in Python

Lists use square brackets and each data item is separated by a comma. The items in the list can be of any data type: string, integer, float, Boolean, and even other lists. For example:

Multidimensional lists are covered in CS 30, but it is good for you to know what they look like.