Skip to content

Commit 172bfbf

Browse files
Update bit_manipulation/count_number_of_one_bits.py
Co-authored-by: Tapajyoti Bose <[email protected]>
1 parent 2d3cc38 commit 172bfbf

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

bit_manipulation/count_number_of_one_bits.py

-4
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ def count_one_bits(number: int) -> int:
2828
"""
2929
if number < 0:
3030
raise ValueError("the value of input must be positive")
31-
elif isinstance(number, float):
32-
raise TypeError("Input value must be a 'int' type")
33-
elif isinstance(number, str):
34-
raise TypeError("'<' not supported between instances of 'str' and 'int'")
3531
result = 0
3632
while number:
3733
if number % 2 == 1:

0 commit comments

Comments
 (0)