Skip to main content
Added an example about the output.
Source Link
Akseli Palén
  • 28.2k
  • 10
  • 69
  • 76

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.

If you're looking for bin() as an equivalent to hex(), it was added in python 2.6.

Example:

>>> bin(10) '0b1010' 
Source Link
John Fouhy
  • 42.4k
  • 19
  • 66
  • 79

If you're looking for bin() as an equivalent to hex(), it was added in python 2.6.