DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
3+9 =
Submit