title: How do I convert hex to decimal in Python?
body: <p>I have some Perl code where the hex() function converts hex data to decimal. How can I do it on <a href="http://en.wikipedia.org/wiki/Python_%28programming_language%29">Python</a>?</p>