human
Find the Missing Number | a represents the array n : Number of elements in array a.
Driver Code"
How can the above be solved in Python?

Give me a code to find the Missing Number and the other steps required?
assistant
#Here is code to find the Missing Number and the other steps required.
 def getMissingNo ( a , n ) :
	i , total = 0 , 1
	for i in range ( 2 , n + 2 ) :
		total += i
		total -= a [ i - 2 ]
	return total
arr = [ 1 , 2 , 3 , 5 ]
print ( getMissingNo ( arr , len ( arr ) ) )