Informatics Practices

Which of the following functions will return the first occurrence of the specified element in a list?

  1. sort()
  2. value()
  3. index()
  4. Sorted()

Python List Manipulation

1 Like

Answer

index()

Reason — The index() function in Python returns the index of first matched item from the list.

Answered By

1 Like


Related Questions