How to count how many elements there are in an array pyhton code example Example: python how to count items in array myArray = [1, 2, 3] len(myArray) #output 3