Written by the Fiveable Content Team โข Last updated August 2025
Verified for the 2026 exam
Verified for the 2026 examโขWritten by the Fiveable Content Team โข Last updated August 2025
Definition
A list, also known as an array or a collection, is a data structure that holds a sequence of elements. In AP Pseudocode, it allows storing multiple values under one variable. Each element in the list can be accessed using its index.
Nested List: A nested list refers to a list that is contained within another list. It allows for organizing and representing hierarchical or multi-dimensional data structures.
Appending: Appending involves adding an element to the end of an existing list, increasing its size dynamically.
Size/Length: The size or length of a list represents the total number of elements it contains.