Skip to content

Commit

Permalink
fixed trailing space
Browse files Browse the repository at this point in the history
  • Loading branch information
Muna-S committed Jan 12, 2025
1 parent 4142b17 commit 9e99ce7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solutions/binary_decimal_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9e99ce7

Please sign in to comment.