human
Count number of trailing zeros in product of array | Returns count of zeros in product of array.
count number of 2 s in each element.
count number of 5 s in each element.
return the minimum.
Driven Program"
How can the above be solved in Python?

What is a code to count number of trailing zeros in product of array and the other steps required?
assistant
#Here is code to count number of trailing zeros in product of array and the other steps required.
 def countZeros ( a , n ) :
	count2 = 0
	count5 = 0
	for i in range ( 0 , n ) :
		while ( a [ i ] % 2 == 0 ) :
			a [ i ] = a [ i ] // 2
			count2 = count2 + 1
		while ( a [ i ] % 5 == 0 ) :
			a [ i ] = a [ i ] // 5
			count5 = count5 + 1
	if ( count2 < count5 ) :
		return count2
	else :
		return count5
a = [ 10 , 100 , 20 , 30 , 50 , 90 , 12 , 80 ]
n = len ( a )
print ( countZeros ( a , n ) )