1. Home
  2. Data Science
  3. Python
  4. Which of the following methods returns the number of…

Added 4 May 2024

Which of the following methods returns the number of occurrences of a specified value in a tuple?

  1. count() Correct answer
  2. index()
  3. get()
  4. len()

Correct answer

A. count()

15 views

MCQSEXAM

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

Shown after review. No links please.

More Python MCQs

Practise all Python MCQs

Similar MCQs