An abstract data type representing a sequence of items.
Traits
| Homogenous? | No |
|---|---|
| Static/dynamic? | Dynamic |
| Mutable? | Yes |
Example
Usage
data = [1, 4, 7, 2]
data.append(5)
for i in data:
print(i)
Pseudocode
array = [1, 2, 3]
list = (4, 5, 6)
(not explicitly in A-Level specification)