<human>:  Manipulating binary data in Python
<bot>: Here is some code to encode string `data` using hex 'hex' encoding

print(data.encode('hex'))

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.