Counting array elements in Python [duplicate]

How can I count the number of elements in an array, because contrary to logic array.count(string) does not count all the elements in the array, it just searches for the number of occurrences of string.

5 Answers
5

Leave a Comment