[]
`. The index of the first element in a list is 0
, the index of the second element is 1
, and so on.# create a list
my_list = ["apple", "banana", "cherry"]
# access the first element
print(my_list[0])
# access the second element
print(my_list[1])
# access the third element
print(my_list[2])
apple
banana
cherry
my_list
` that contains three elements. We then access each element using its index with the indexing operator `[]
`, and print its value to the console.