Which of the following methods returns the number of occurrences of a specified value in a tuple?
-
A
count()
Correct answer
-
B
index()
-
C
get()
-
D
len()
Correct answer
A. count()
15 views
Explanation
The count() method returns the number of occurrences of a specified value in a tuple.
Doubts & discussion
Not sure why the answer is A? Ask here and get an explanation.
Ask a doubt about this MCQ