array = [1, 2, 3, 4, 5]
print(len(arr))
# To get the length of a Python array, use 'len()'
a = arr.array(‘d’, [1.1, 2.1, 3.1])
len(a) # Output: 3
a=arr.array('d', [1.1 , 2.1 ,3.1] )
len(a)
#new array in range 1 -> 10;
ar = [i for i in range(1,10)]
print(len(ar))
# OR
print(len([1,2,3]))