Python 3 Tutorial · Chapter 18 of 22
Python Lists
Store many values in a list.
A list keeps values under one name. Indexes start at 0.
Use a for loop to visit each element.
List sample
Try it Yourself »
scores = [90, 85, 88, 92, 95]
for i, score in enumerate(scores):
print(f"Score {i + 1}: {score}")
Classroom Tips
- Do not access outside the list length.
- append() and len() are common beginner tools.