title: How can I store input as a hexadecimal number?
body: <p>I've been working on a python app that can convert decimal numbers to hexadecimal numbers and then do the reverse. I'm having trouble with storing user input as a hexadecimal number. This is fairly crucial for my program's functioning because I need to ask which number they would like to convert back into decimal numbers. I just need to store it as a different data type other than a string or an integer but still need a prompt.</p>
  
  <p>So far I have tried this method:</p>
  
  <pre><code>num = int(hex(input("Which Hexadecimal number would you like to convert to decimal/denary?  \n")))
  </code></pre>
  
  <p>But it still thinks that the hex number is actually a string.</p>