human
Minimum value to be assigned to the elements so that sum becomes greater than initial sum | Function to return the minimum required value.
Find the sum of the array elements.
Return the required value.
Driver code"
Solution in Python:
 Give me a code to minimum value to be assigned to the elements so that sum becomes greater than initial sum and the other steps required?
assistant
#Here is code to minimum value to be assigned to the elements so that sum becomes greater than initial sum and the other steps required.
 def findMinValue ( arr , n ) :
	sum = 0
	for i in range ( n ) :
		sum += arr [ i ]
	return ( sum // n ) + 1
arr = [ 4 , 2 , 1 , 10 , 6 ]
n = len ( arr )
print ( findMinValue ( arr , n ) )