Python Programming - Lists - Discussion

Discussion Forum : Lists - General Questions (Q.No. 22)
22.
How can you find the index of the last occurrence of a specific element in a list?
list.last_index(element)
list.index(element, last=True)
list.rindex(element)
list.find_last(element)
Answer: Option
Explanation:
The rindex() method is used to find the index of the last occurrence of a specific element in a list.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.