Python : convert a hex string
<p>//Duplicated question are deleted</p>

<p>I would like to convert a hex string like this:</p>

<pre><code>b'\x0f\x00\x00\x00NR09G05164\x00' //this is what i received from socket
</code></pre>

<p>to something like:</p>

<pre><code>0f0000004e52303947303531363400
</code></pre>

<p>How can I achieve this with Python?</p>
