get length of a vector python code example Example: find array length in python a=arr.array('d', [1.1 , 2.1 ,3.1] ) len(a)