Question · Python course · Module 2: Data Structures

Accessing the Last Element

How do you access the last element of the list 'animals'?

Answer options

  • animals[last]
  • animals[0]
  • animals[-1]
  • animals.last()
Show the answer

Correct answer:

  • animals[-1]