Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

count how much a number is in an array python

# Our array
arr = [82, 49, 82, 82, 41, 82, 15, 63, 38, 25]

# let's print the number of 82 in our array/list
print(arr.count(82))

# it will print : 4
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #count #number #array #python
ADD COMMENT
Topic
Name
1+1 =