Python Programming - Lists - Discussion

Discussion Forum : Lists - General Questions (Q.No. 66)
66.
What is the purpose of the list.count() method in Python?
Returns the total number of elements in the list.
Counts the occurrences of a specific element in the list.
Counts the number of unique elements in the list.
Returns the index of the first occurrence of a specific element.
Answer: Option
Explanation:
The count() method in Python lists is used to count the occurrences of a specific element.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.