py преобразовать бинарный в int
# Convert integer to binary
>>> bin(3)
'0b11'
# Convert binary to integer
>>> int(0b11)
3
Precious Peafowl
# Convert integer to binary
>>> bin(3)
'0b11'
# Convert binary to integer
>>> int(0b11)
3