human
Add minimum number to an array so that the sum becomes even | Function to find out minimum number.
Count odd number of terms in array.
Driver code"
Solution in Python:

Write me a code to add minimum number to an array so that the sum becomes even and the other steps required?
assistant
#Here is code to add minimum number to an array so that the sum becomes even and the other steps required.
 def minNum ( arr , n ) :
	odd = 0
	for i in range ( n ) :
		if ( arr [ i ] % 2 ) :
			odd += 1
	if ( odd % 2 ) :
		return 1
	return 2
arr = [ 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 ]
n = len ( arr )
print minNum ( arr , n )