human
Construct original array starting with K from an array of XOR of all elements except elements at same index | Function to construct an array with each element equal to XOR of all array elements except the element at the same index.
Original array.
Stores Bitwise XOR of array.
Calculate XOR of all array elements.
Print the original array B.
Driver Code.
Function Call"
How can the above be solved in Python?

=====
Give me a code to construct original array starting with K from an array of XOR of all elements except elements at same index and the other steps required?
assistant
#Here is code to construct original array starting with K from an array of XOR of all elements except elements at same index and the other steps required.
 def constructArray ( A , N , K ) :
	B = [ 0 ] * N ;
	totalXOR = A [ 0 ] ^ K ;
	for i in range ( N ) :
		B [ i ] = totalXOR ^ A [ i ] ;
	for i in range ( N ) :
		print ( B [ i ] , end = " ▁ " ) ;
if __name__ == ' _ _ main _ _ ' :
	A = [ 13 , 14 , 10 , 6 ] ;
	K = 2 ;
	N = len ( A ) ;
	constructArray ( A , N , K ) ;