Skip to content

Commit

Permalink
changed to snake case
Browse files Browse the repository at this point in the history
  • Loading branch information
Muna-S committed Jan 11, 2025
1 parent 98987fa commit b6fee20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion solutions/binary_decimal_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Created by Muna Sattouf on 29/12/2024
Completed on 1/1/2025
"""
def DecimalToBinary(decimal: int)-> str:
def decimal_to_binary(decimal: int)-> str:
"""
This function takes a decimal number from command line as paramter,
and returns its binary representation.
Expand All @@ -13,6 +13,7 @@ def DecimalToBinary(decimal: int)-> str:
"""
if not isinstance(decimal, int):

raise ValueError("Input must be an integer")
if decimal < 0:
decimal = -decimal
Expand Down

0 comments on commit b6fee20

Please sign in to comment.