import binascii hex_string = "01FF"bytes_result = binascii.unhexlify(hex_string)print bytes_result
Standard input is empty
�
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!