[Tutor] Concatenating string

Joel Goldstick joel.goldstick at gmail.com
Wed Feb 23 15:12:44 CET 2011


On Tue, Feb 22, 2011 at 9:02 PM, tee chwee liong <tcl76 at hotmail.com> wrote:

>  hi Francesco,
>
> couldnt get hex of bin working on IDLE Python 2.5 when i type:
>
> >>> hex(0b1001001001001001001)
> SyntaxError: invalid syntax
> >>> bin(0x49249)
>
> Traceback (most recent call last):
>   File "<pyshell#126>", line 1, in <module>
>     bin(0x49249)
>
> NameError: name 'bin' is not defined
>
> pls advise.
>
> thanks
> tcl
>
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
>
bin is new   in 2.6 .. check your version

-- 
Joel Goldstick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110223/8c05f1a0/attachment.html>


More information about the Tutor mailing list