[Tutor] Conversion question
Tom Green
xchimeras at gmail.com
Tue Jun 16 21:25:58 CEST 2009
Correct 8-bit ASCII. Sorry about that. I am using Python 2.5.2, which
doesn't support bin. If I upgraded how would I go about converting the
entire string to 8-bit ASCII?
I appreciate your help.
On Tue, Jun 16, 2009 at 3:05 PM, Lie Ryan <lie.1296 at gmail.com> wrote:
> xchimeras at gmail.com wrote:
> > Thanks for the reply I would like to print the string in binary
> > Man=010011010110000101101110
> >
>
> What's M in binary?
> Nobody knows...
>
> What's M in encoded in 8-bit ASCII string:
> '0b1001101'
> Source: bin(ord('M'))
>
> _______________________________________________
> Tutor maillist - Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090616/c8b6ea52/attachment.htm>
More information about the Tutor
mailing list