Introduction to lists in Python

Beginner
Student
Developer
Data Scientist
Azure

You'll often work with multiple values in a program. In Python, you can group data together by using lists. In this module, you'll learn how to use lists and what the most common tasks with lists are.

Learning objectives

By the end of this module, you'll be able to:

  • Identify when to use a list.
  • Create a list with string values and numeric values.
  • Access a particular item in a list by using indexes.
  • Push items to the end of a list.
  • Sort and slice a list.

Prerequisites

  • Basic Python programming knowledge, which includes use of variables, strings, integers, and math
  • Experience modifying and running code in Jupyter notebooks