[Tutor] hexodecimal to decimal form

William Becerra wbecerra1 at gmail.com
Tue Nov 11 10:00:32 CET 2014

Hello, I'm new to programming using Python 2.7.8 and Windows 8 OS
I'm reading How to Think Like a Computer Scientist - learning with python
on chapter 12.2
theres the following code:
 class Point:
blank = point()
blank.x = 3.0
blank.y = 4.0

>>print blank.x
>>print blank.y

>>print blank
<__main__.point instance at 0x02B38E40>

the author says the the < 0x02B38E40> is in hexadecimal form

heres is my question:
How can i convert from hexodecimal form to decimal form?
is there any source i can read on it?
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

thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20141111/8681db0e/attachment.html>

More information about the Tutor mailing list