title: Covert Hexademcial String to Byte list in Python
body: <p>How can I convert a hexadecimal string = <code>a5acf29e4d11f20b6dee54bf369ee0f8</code></p>
  <p>To this exactly = <strong><code>(bytes([0xa5, 0xac, 0xf2, 0x9e, 0x4d, 0x11, 0xf2, 0x0b, 0x6d, 0xee, 0x54, 0xbf, 0x36, 0x9e, 0xe0, 0xf8])</code></strong></p>
  <p>I tried two approaches but they show in a different format.</p>
  <ol>
  <li>Using bytes.fromhex()</li>
  </ol>
  <pre><code>&gt;&gt;&gt; bytes.fromhex('a5acf29e4d11f20b6dee54bf369ee0f8')
  b'\xa5\xac\xf2\x9eM\x11\xf2\x0bm\xeeT\xbf6\x9e\xe0\xf8'
  </code></pre>
  <ol start="2">
  <li>Using unhexlify</li>
  </ol>
  <pre><code>&gt;&gt;&gt; import binascii
  &gt;&gt;&gt; from binascii import unhexlify
  &gt;&gt;&gt; unhexlify('a5acf29e4d11f20b6dee54bf369ee0f8')
  b'\xa5\xac\xf2\x9eM\x11\xf2\x0bm\xeeT\xbf6\x9e\xe0\xf8'
  </code></pre>
  <p>However, type of both the formats is same.</p>
  <pre><code>&gt;&gt;&gt; type(bytes([0xa5, 0xac, 0xf2, 0x9e, 0x4d, 0x11, 0xf2, 0x0b, 0x6d, 0xee, 0x54, 0xbf, 0x36, 0x9e, 0xe0, 0xf8]))
  &lt;class 'bytes'&gt;
  &gt;&gt;&gt; type(b'\xa5\xac\xf2\x9eM\x11\xf2\x0bm\xeeT\xbf6\x9e\xe0\xf8')
  &lt;class 'bytes'&gt;
  </code></pre>
  <p>Regardless, I want to display the final format in the byte list format only</p>
  <p><code>(bytes([0xa5, 0xac, 0xf2, 0x9e, 0x4d, 0x11, 0xf2, 0x0b, 0x6d, 0xee, 0x54, 0xbf, 0x36, 0x9e, 0xe0, 0xf8])</code></p>
  <p>Could someone please suggest how can I achieve this?</p>