Convert an integer number to a binary string #!/usr/bin/python x = 10 print bin(x) $python bin.py 0b1010 $python bin.py 0b1010 $