Python Programming - Tuples - Discussion

Discussion Forum : Tuples - General Questions (Q.No. 5)
5.
What is the purpose of the tuple.count() method?
Counts the number of elements in the tuple.
Counts the occurrences of a specific element in the tuple.
Returns the index of the first occurrence of a specific element.
Checks if a specific element exists in the tuple.
Answer: Option
Explanation:
The count() method in Python tuples is used to count the occurrences 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.