Write a code to store and access the value of a particular number in a list by passing the address of the location as a parameter.
user
"""
Store and access the value of a particular number in a list by passing the address of the location as a parameter
"""

def get_list_value(mylist, index):
    return mylist[index]

# example
mylist = [1, 2, 3, 4, 5]
value = get_list_value(mylist, 2)
print(value)  # 3
assistant