count item in array python code example
Example 1: count occurrences of value in array python
>>> l = ["a","b","b"]
>>> l.count("a")
Example 2: python how to count items in array
myArray = [1, 2, 3]
len(myArray)
#output
3
>>> l = ["a","b","b"]
>>> l.count("a")
myArray = [1, 2, 3]
len(myArray)
#output
3