Python3 print in hex representation
<p>I can find lot's of threads that tell me how to convert values to and from hex. I do not want to convert anything. Rather I want to print the bytes I already have in hex representation, e.g. </p>

<pre><code>byteval = '\x60'.encode('ASCII')
print(byteval)  # b'\x60'
</code></pre>

<p>Instead when I do this I get:</p>

<pre><code>byteval = '\x60'.encode('ASCII')
print(byteval)  # b'`' 
</code></pre>

<p>Because ` is the ASCII character that my byte corresponds to. </p>

<p>To clarify: type(byteval) is bytes, not string. </p>