DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
Python int to binary
integer = 7 bit_count = 5 print(f'{integer:0{bit_count}b}') # 0 filled
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#Python
#int
#binary
ADD COMMENT
Topic
COMMENT
Name
1+1 =
Submit