human
Write me a code to mean and the other steps required given the following:
Mean | Function for calculating mean.
Driver program"
How can the above be solved in Python?
assistant
#Here is code to mean and the other steps required.
 def findMean ( a , n ) :
	sum = 0
	for i in range ( 0 , n ) :
		sum += a [ i ]
	return float ( sum / n )
a = [ 1 , 3 , 4 , 2 , 7 , 5 , 8 , 6 ]
n = len ( a )
print ( " Mean ▁ = " , findMean ( a , n ) )