Python Programming - Tuples - Discussion

Discussion Forum : Tuples - General Questions (Q.No. 12)
12.
What is the purpose of the tuple.index() method?
Returns the total number of elements in the tuple.
Finds the index of the last occurrence of a specific element.
Finds the index of the first occurrence of a specific element.
Adds a new element to the end of the tuple.
Answer: Option
Explanation:
The index() method is used to find the index of the first occurrence of a specific element in a tuple.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.