import codecs hex_string = "deadbeef"bytes_result = codecs.decode(hex_string, "hex")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!