Computer Science

Which of the following will return the last element of a list L with 5 elements?

  1. L[5]
  2. L[4]
  3. L[-1]
  4. L[6]

Python List Manipulation

18 Likes

Answer

L[4]

L[-1]

Answered By

1 Like


Related Questions