The website not worded


I think my code is correct.but the client represent there's something wrong.Anyone who can help me.please!

Traceback (most recent call last):
File "python/", line 152, in

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


Hello @fresh_bird,

In your init function, you have set the values of self.x, self.y and self.z as their string values. However, in your representation function you have used the placeholder %d in the string. This is incorrect as the correct placeholder for a string should be %s. Fix this and you'll be good to go :smile:!


First,thanks for your suggest,i have modified this mistake.And however do you know why the system represent the message like this(Traceback (most recent call last):
File "python/", line 152, in )
And when i submit the code ,the website popup a dialog box writen"Something went wrong :frowning:
Click Close to try again or refresh the page."