From 9e99ce741cf3dbea7ff5c70aca942e7e13f9a522 Mon Sep 17 00:00:00 2001 From: Muna Sattouf Date: Sun, 12 Jan 2025 17:15:43 +0200 Subject: [PATCH] fixed trailing space --- solutions/binary_decimal_conversion.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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