11. Building useful


#1

What is the actual problem here?
It prints out (1,2,3) but it still says looks like you didn't print "(1,2,3)"

Also I wasn't able to post my problem because it said the topic contains the censored word "■■■".How else am I supposed to type class? :stuck_out_tongue:

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 my_point.__repr__()


#2

Got it, didn't notice the space between %d and %d


#4