Python bin() built-in function
index()
method that returns an integer.
Examples
>>> bin(1)
# '0b1'
>>> bin(10)
# '0b1010'
>>> bin(100)
# '0b1100100'
>>> bin(1000)
# '0b1111101000'
index()
method that returns an integer.
>>> bin(1)
# '0b1'
>>> bin(10)
# '0b1010'
>>> bin(100)
# '0b1100100'
>>> bin(1000)
# '0b1111101000'