title: unpack syntax in python 3
body: <p>I am trying to convert hex numbers into decimals using unpack.
  When I use:</p>
  
  <pre><code>from struct import *
  unpack("&lt;H",b"\xe2\x07")
  </code></pre>
  
  <p>The output is: <code>2018</code>, which is what I want.
  The thing is I have my hex data in a list as a string in the form of:</p>
  
  <pre><code>asd = ['e2','07']
  </code></pre>
  
  <p>My question is is there a simple way of using unpack without the backslashes, the x? Something like so:</p>
  
  <pre><code>unpack("&lt;H","e207")
  </code></pre>
  
  <p>I know this doesn't work but I hope you get the idea.</p>
  
  <p>For clarification I know I could get the data in the form of <code>b'\x11'</code> in the list but then it's interpreted as ASCII, which I don't want, that's why I have it in the format I showed.</p>