Python Programming - Tuples - Discussion

Discussion Forum : Tuples - General Questions (Q.No. 16)
16.
How can you find the index of the last occurrence of a specific element in a tuple?
tuple.last_index(element)
tuple.index_last(element)
tuple.index(element, -1)
tuple.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.