TOPIC 5: Python Lists
Completion requirements
2. List Items & Ordered Lists
List Items
The values stored inside a list are called List Items.
thislist = ["apple", "banana", "cherry"]
In this example:
-
apple is a list item
-
banana is a list item
-
cherry is a list item
Ordered Lists
Lists are ordered.
This means that the items in a list have a defined position and order.
thislist = ["apple", "banana", "cherry"]
The order is:
-
apple
-
banana
-
cherry
When a new item is added to the list, it is usually added to the end of the list.