279 B
279 B
title, tags
| title | tags |
|---|---|
| arithmetic_progression | math,beginner |
Returns the base 2 equivalent of a decimal number
- Use
binto convert a given decimal number into binary equivalent
def convert_to_binary(n):
return bin(n)
convert_to_binary(100) # 0b1100100