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: pass blank = point() blank.x = 3.0 blank.y = 4.0
>>print blank.x 3.0 >>print blank.y 4.0 >>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
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor