= ["cat", "dog", "horse"]
my_list
= my_list[0]
my_element print(my_element)
print(my_list[2])
cat
horse
As well as setting my_element
to the “0th” element of the list, we also print the value of the element at index 2:
= ["cat", "dog", "horse"]
my_list
= my_list[0]
my_element print(my_element)
print(my_list[2])
cat
horse