Python Programming - Lists - Discussion

Discussion Forum : Lists - General Questions (Q.No. 30)
30.
What does the count() method of a list return in Python?
The total number of elements in the list.
The number of occurrences of a specific element.
The sum of all elements in the list.
The index of the last occurrence of a specific element.
Answer: Option
Explanation:
The count() method returns the number of occurrences of a specific element in a list.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.