Bit Manipulation - Number of 1 Bits (Hamming Weight)
What is the output of the following code when the input is 11?
def hammingWeight(n: int) -> int:
return bin(n).count('1')
print(hammingWeight(11))
