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.
Related terms
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.