mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-07 03:07:46 +08:00
Update decimal_to_binary.py (#2185)
"an Integer" instead of "a Integer"
This commit is contained in:
@ -4,7 +4,7 @@
|
|||||||
def decimal_to_binary(num: int) -> str:
|
def decimal_to_binary(num: int) -> str:
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Convert a Integer Decimal Number to a Binary Number as str.
|
Convert an Integer Decimal Number to a Binary Number as str.
|
||||||
>>> decimal_to_binary(0)
|
>>> decimal_to_binary(0)
|
||||||
'0b0'
|
'0b0'
|
||||||
>>> decimal_to_binary(2)
|
>>> decimal_to_binary(2)
|
||||||
|
Reference in New Issue
Block a user