Search⌘ K

Lists

Explore the fundamentals of Python lists, including how to create lists that store multiple items, access elements using indexing, and add new items with append. This lesson equips you with the skills to efficiently manage and manipulate collections of data, which are crucial for performing complex data analysis later in the course.

We'll cover the following...

Grouping items together

Until now we have learned that a variable can only hold a single item. But there are many ways to hold multiple values and refer to all of them by a single variable in Python, and the most popular is a list. A list can hold multiple values at the same time. These values could belong to any data type.

Lists are mostly used to store similar kinds of information. For example, if we want to store the marks of 50 students of a class, we would not ...