Home »
Python »
Python Tuples MCQs
What does count() function do in python tuples?
31. What does count() function do in python tuples?
- It gives you the sum of the entire tuple
- It counts the occurrence of an element
- It gives the sum of all the integers present inside the tuples
Answer: B) It counts the occurrence of an element
Explanation:
The count() functions help us to find the total occurrence of a particular element inside a tuple.