Search
 
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
Name
8+4 =