Container/Collection

A container/collection is an object made up of other objects.

Python Example

Additional information on Python Containers can be found here: https://docs.python.org/3/library/collections.html

# List.
my_list = ['a', 'b', 'c']
print(my_list[2])

# Tuple, which is ordered and unchangeable.
my_tuple = ('a', 'b', 'c')
print(my_tuple[2])

# Dictionary, which is key/value pairs that are unordered, changeable and indexed.
my_dictionary = {"name": "Jeff", "age": 45}
print(my_dictionary["name"])
for key, value in my_dictionary.items():
    print(key, value)