"Steven D'Aprano" <[email protected]> wrote

with how to get binary to text, so your suggestions are greatly appreciated.
 I'll get to it! (00000001 = a, 00000010 = b, ...)

>>> int('01101110', 2)
110
>>> chr(110)
'n'

And if you really want to use non standard character values you
could look at the string maketrans() function and string.translate()
method...

HTH,

--
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/



_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to