How is this possible?


My code answer that "(1,2,3)." when codeacademy threw eror this : Oops, try again. It looks like you didn't print "(1, 2, 3)".

It' should let me past

class Point3D(object):
    def __init__(self,x,y,z):
        self.x = x
        self.y = y
        self.z = z
    def __repr__(self):
        return '"(%d,%d,%d)"' % (self.x,self.y,self.z)

my_point = Point3D(1,2,3)
print my_point


using quotation marks and apostrophes is a bit much. Just one or the other to mark beginning and end of string

you also seem to miss a few spaces (output needs to be an exact match)


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.