human
Print string as hex literal python
assistant
Here is some code to print string "ABC" as hex literal

"""ABC""".encode('hex')

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