Python Lists


List

A list is a collection which is ordered and changeable.

In Python lists are written with square brackets.

Example

Create a List:

thislist = ["apple", "banana", "cherry"]
print(thislist)
Try it Yourself »


Copyright 1999-2023 by Refsnes Data. All Rights Reserved.