human
Hamming distance between two Integers | Function to calculate hamming distance.
Driver code"
How can the above be solved in Python?

Write me a code to hamming distance between two Integers and the other steps required?
assistant
#Here is code to hamming distance between two Integers and the other steps required.
 def hammingDistance ( n1 , n2 ) :
	x = n1 ^ n2
	setBits = 0
	while ( x > 0 ) :
		setBits += x & 1
		x >>= 1
	return setBits
if __name__ == ' _ _ main _ _ ' :
	n1 = 9
	n2 = 14
	print ( hammingDistance ( 9 , 14 ) )