# create an array
my_array = [1, 2, 3, 4, 5]
# access the first element of the array (index 0)
print(my_array[0])
# access the second element of the array (index 1)
print(my_array[1])
# access the last element of the array (index -1)
print(my_array[-1])
1
2
5
0
, and the index of the last element of an array is `-1
`.