#!/usr/bin/python

x = 10
print bin(x)

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