human
Write me a code to numbers formed by flipping common set bits in two given integers and the other steps required given the following:
Numbers formed by flipping common set bits in two given integers | Function to flip bits of A and B which are set in both of them.
Clear the bits of A which are set in both A and B.
Clear the bits of B which are set in both A and B.
Print updated A and B.
Driver Code"
Solution in Python:
assistant
#Here is code to numbers formed by flipping common set bits in two given integers and the other steps required.
 def flipBitsOfAandB ( A , B ) :
	A = A ^ ( A & B )
	B = B ^ ( A & B )
	print ( A , B )
if __name__ == " _ _ main _ _ " :
	A = 10
	B = 20
	flipBitsOfAandB ( A , B )