[Tutor] class problem
rwobben at hotmail.com
Sat Sep 18 11:14:03 CEST 2010
I have this exercise :
Create and print a Point object, and then use id to print the
object’s unique identifier. Translate the hexadecimal form into decimal and
confirm that they match.
So I thought that this would solve it:
def __init__(self, x=0, y=0):
self.x = x
self.y = y
But now id is a decimal so I don't can't translate it.
Did I something wrong ?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor