title: How to convert a hex string to hex number
body: <p>I want to convert a hex string (ex: <code>0xAD4</code>) to hex number, then to add <code>0x200</code> to that number and again want to print that number in form of <code>0x</code> as a string.</p>
  
  <p>i tried for the first step:</p>
  
  <pre><code>str(int(str(item[1][:-2]),16))
  </code></pre>
  
  <p>but the value that is getting printed is a decimal string not a hex formatted string (in 0x format) ( i want to print the final result in form of <code>0x</code>)</p>
  
  <ul>
  <li><code>[:-2]</code> to remove the last 00 from that number </li>
  <li><code>item[1]</code> is containing hex number in form of <code>0x</code></li>
  </ul>