Python Programming - Lists - Discussion

Discussion Forum : Lists - General Questions (Q.No. 36)
36.
What is the purpose of the index() method in Python lists?
Finds the index of the first occurrence of a specific element.
Finds the index of the last occurrence of a specific element.
Returns the index of the maximum element in the list.
Searches for an element in the list based on a condition.
Answer: Option
Explanation:
The index() method in Python lists is used to find the index of the first occurrence of a specific element.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.