If you're looking for bin()
as an equivalent to hex()
, it was added in python 2.6.
Example:
>>> bin(10)'0b1010'
If you're looking for bin()
as an equivalent to hex()
, it was added in python 2.6.
Example:
>>> bin(10)'0b1010'