Computer science · Grades 7–10
Python lists and sequence tracing · Revision card
Python lists use zero-based indexing; these tasks use the displayed list only.
Understand the idea
Read the index
Python lists use zero-based indexing; these tasks use the displayed list only.
Track mutation
An operation can change the existing list rather than create a new value.
Trace without running
Write each intermediate state before deciding the output.
Worked examples
In Python, values = [5, 8, 13]. What is values[1]?
Index 1 refers to the second item.
8
In Python, len([2, 4, 6, 8]) returns what number?
Len counts the four items.
4
Explain without looking
- What does Python [x * 2 for x in [1, 3, 5]] produce?
Further reading and review references
These are reference links, not copied exercises, institutional endorsement or proof of independent review.
Preview material · independent educational review required. Grade bands are approximate, not official curriculum alignment.