human
Find missing number in another array which is shuffled copy | Returns the missing number Size of arr2 [ ] is n - 1.
missing number 'mnum.
1 st array is of size 'n.
2 nd array is of size 'n - 1.
Required missing number.
Driver Code"
How can the above be solved in Python?
 ... What is a code to find missing number in another array which is shuffled copy and the other steps required?
assistant
#Here is code to find missing number in another array which is shuffled copy and the other steps required.
 def missingNumber ( arr1 , arr2 , n ) :
'
	mnum = 0
'
	for i in range ( n ) :
		mnum = mnum ^ arr1 [ i ]
'
	for i in range ( n - 1 ) :
		mnum = mnum ^ arr2 [ i ]
	return mnum
arr1 = [ 4 , 8 , 1 , 3 , 7 ]
arr2 = [ 7 , 4 , 3 , 1 ]
n = len ( arr1 )
print ( " Missing ▁ number ▁ = ▁ " , missingNumber ( arr1 , arr2 , n ) )