Skip to content

TRUEANGLE

BEAUTY AND PLAY

  • DOLLECT
  • Others
  • Configuration
  • AI
  • BLOG
  • ABOUT
    • ABOUT
    • Perception Style

Convert an integer number to a binary string

Posted byjeffrin December 19, 2017


#!/usr/bin/python

x = 10
print bin(x)

$python bin.py 
0b1010
$python bin.py 
0b1010
$

Posted byjeffrinDecember 19, 2017Posted inbuilt-in, python-sl

Post navigation

Previous Post Previous post:
Equivalent of Python’s dir in Javascript
Next Post Next post:
Return a tuple consisting of the two numeric arguments converted to a common type
December 2017
M T W T F S S
 123
45678910
11121314151617
18192021222324
25262728293031
« Nov   Jan »
TRUEANGLE, Proudly powered by WordPress.