DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
py convert binary to int
# Convert integer to binary
>>
>
bin
(
3
)
'0b11'
# Convert binary to integer
>>
>
int
(
0b11
)
3
Source by www.delftstack.com #
PREVIOUS
NEXT
Tagged:
#py
#convert
#binary
#int
ADD COMMENT
Topic
COMMENT
Name
8+4 =
Submit