Hi,

String formatting can be used to converting an integer to its octal or 
hexadecimal form:
 >>> a = 199
 >>> "%o" % a
'307'
 >>> "%x" % a
'c7'

But, can string formatting be used to convert an integer to its binary 
form ?


Thanks in advance.

xiaojf
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to