Python Programming - Lists - Discussion

Discussion Forum : Lists - General Questions (Q.No. 74)
74.
How can you find the index of the last occurrence of a specific element in a list?
list.last_index(element)
list.index_last(element)
list.index(element, -1)
list.find_last(element)
Answer: Option
Explanation:
The index() method can be used with a negative start parameter to find the last occurrence of an element.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.