Is this a bug?


#1



Exercise 11 in Review of the calsses


The automatic corrector seems not to see I have done right. What do I miss?
output:
(1,2,3)
None
error message:
Oops, try again.
It looks like you didn't print "(1, 2, 3)".


I expected to have right


Replace this line with your code. 
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 str(my_point)


#2

What would the bug be? You say you printed one thing and that it asks if you printed something else


#3

Thanks for your non-help I did not print the SPACES.... silly errors .....


#4

..


#5

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