human
Element equal to the sum of all the remaining elements | Function to find the element.
sum is use to store sum of all elements of array.
iterate over all elements.
Driver Code"
Solution in Python:
 What is a code to element equal to the sum of all the remaining elements and the other steps required?
assistant
#Here is code to element equal to the sum of all the remaining elements and the other steps required.
 def findEle ( arr , n ) :
	sum = 0
	for i in range ( n ) :
		sum += arr [ i ]
	for i in range ( n ) :
		if arr [ i ] == sum - arr [ i ] :
			return arr [ i ]
	return - 1
if __name__ == " _ _ main _ _ " :
	arr = [ 1 , 2 , 3 , 6 ]
	n = len ( arr )
	print ( findEle ( arr , n ) )