diff --git a/solutions/binary_decimal_conversion.py b/solutions/binary_decimal_conversion.py index 4a80ebcf4..9c5816a13 100644 --- a/solutions/binary_decimal_conversion.py +++ b/solutions/binary_decimal_conversion.py @@ -27,7 +27,7 @@ def decimal_to_binary(decimal: int) -> str: return "-" + decimal_to_binary(decimal) if decimal == 0: return "0" - binarynumber = " " + binarynumber = "" while decimal > 0: binarynumber = str(decimal % 2) + binarynumber decimal = decimal // 2