diff --git a/snippets/convert_to_binary.md b/snippets/convert_to_binary.md index 9c6d4fc00..6f833de0b 100644 --- a/snippets/convert_to_binary.md +++ b/snippets/convert_to_binary.md @@ -1,11 +1,11 @@ --- -title: arithmetic_progression +title: convert_to_binary tags: math,beginner --- Returns the base 2 equivalent of a decimal number -- Use `bin` to convert a given decimal number into binary equivalent +- Use `bin()` to convert a given decimal number into binary equivalent ```py def convert_to_binary(n): @@ -14,4 +14,4 @@ def convert_to_binary(n): ```py convert_to_binary(100) # 0b1100100 -``` \ No newline at end of file +```