Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

convert number to binary python

a=10
b=format(a,'b')
print(b)

Output:
  1010
 
a=10
b=format(a,'08b')
print(b)

Output:
  00001010
 
PREVIOUS NEXT
Tagged: #convert #number #binary #python
ADD COMMENT
Topic
Name
3+8 =