[Tutor] Ascii hex to binary

Tim Peters tutor@python.org
Sun Aug 3 14:24:02 EDT 2003


[Jimmy verma]
> Hello *
> Can some please tell me how can i express an ASCII hexadecimal
> string in the binary form with python.
>
> 10BF31704FAB5B1F03F9B68B1F39A66521B1841F1481697F8E12B7F7DDD6E3D7248D
> 965B1CD45E2114
>
> I want this string to be expressed in binary form.

Read the docs for binascii.unhexlify.  No, that wasn't obvious <wink>.




More information about the Tutor mailing list