<div dir="ltr">Hello, I'm new to programming using Python 2.7.8 and Windows 8 OS<div>I'm reading How to Think Like a Computer Scientist - learning with python</div><div>on chapter 12.2</div><div>theres the following code:</div><div> class Point:</div><div>     pass</div><div>blank = point()</div><div>blank.x = 3.0</div><div>blank.y = 4.0</div><div><br></div><div>>>print blank.x<br></div><div>3.0</div><div>>>print blank.y</div><div>4.0</div><div><br></div><div>>>print blank</div><div><__main__.point instance at 0x02B38E40><br></div><div><br></div><div>the author says the the < 0x02B38E40> is in hexadecimal form</div><div><br></div><div>heres is my question:</div><div>How can i convert from hexodecimal form to decimal form?</div><div>is there any source i can read on it?</div><div>basically what i want is to use the attributes blank.x and blank.y as a single point like in  the mathematics format (x, y) co-ordinates so that i can workout distance</div><div><br></div><div>thank you</div><div><br></div></div>