Python Programming - Lists - Discussion

Discussion Forum : Lists - General Questions (Q.No. 46)
46.
What does the list.count() method 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.