The website not worded


#1



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

https://www.codecademy.com/en/courses/python-intermediate-en-egNXj/1/5?curriculum_id=4f89dab3d788890003000096

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


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


#2

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:!


#3

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/cli_runner.py", 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."