Python List count() Method
Author -
Programmer Fect
February 21, 2020
Python List count() Method
The count() is a built-in function in Python.
It will return you the count of a given element in a list or a string.
In the case of a list, the element to be counted needs to be given to the count() function, and it will return the count of the element.
The count() method returns an integer value.
Syntax
Parameter Values
element: The element you want to find the count.
Return Values
The count() method returns an integer value.