Written by the Fiveable Content Team • Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 exam•Written by the Fiveable Content Team • Last updated September 2025
Definition
The variable "grocery_list" is a list that stores multiple items. It can hold different types of data and allows you to access, modify, and iterate over the items in the list.
Related terms
list: A collection of ordered elements enclosed in square brackets ([]). Lists are versatile and commonly used in programming.
item: Each individual object or value stored within a list or any other data structure.
access: The ability to retrieve or obtain an item from a list using its index.