Q. Which Python method returns the number of occurrences of a value?

A
count()
B
len()
C
index()
D
find()
Solution:

The count() method returns the number of times a specified value appears in a list or string.

Entri PDF Icon

Get Question Bank

Strengthen Your Practice with our comprehensive question bank.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!