[Tutor] Concatenating string

tee chwee liong tcl76 at hotmail.com
Wed Feb 23 02:57:06 CET 2011


hi, 
 
i dont know why when i re-run bin(0xff0) today at IDLE Python 2.5, it gives me traceback error. 
 
>>> bin(0xff0)
Traceback (most recent call last):
  File "<pyshell#47>", line 1, in <module>
    bin(0xff0)
NameError: name 'bin' is not defined
 
i guess Python 2.5 doesn't support binary conversion of hex. confuse why it worked yesterday when i tried out. 
 
thanks
tcl
 
 
######################################
2) You've already done that several times, just use bin()

HTH,
Adam.
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110223/714b2ab2/attachment.html>


More information about the Tutor mailing list