Getting Started with Python Lists

Learn about the list data structure and its uses, and explore some of its key functions.

As discussed previously, a list in Python is a versatile and ordered collection of items, which can include a mix of data types like integers, floats, strings, and even other lists. Lists are mutable, meaning their contents can be changed after creation. They are defined by enclosing items in square brackets [], separated by commas, as shown below.

Get hands-on with 1200+ tech skills courses.