Building Useful Classes, what's wrong please?


#1

<Below this line, add a link to the exact exercise that you are stuck at.>
https://www.codecademy.com/courses/python-intermediate-en-egNXj/1/5?curriculum_id=4f89dab3d788890003000096#
<In what way does your code behave incorrectly? Include ALL error messages.>
Here’s my code:
<What do you expect to happen instead?>
I got the following message:
Oops, try again. It looks like you didn’t print “(1, 2, 3)”

```python

class Point3D(object):
“”" Points in 3D"""
def init(self,x,y,z):
self.x = x
self.y = y
self.z = z

def __repr__(self):
    y = "(%d,%d,%d)" % (self.x, self.y, self.z)
    return str(y)

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

The output is: (1,2,3).

#3

Just return y and omit str()


#4

White space needed. Check the error message.


#5

the correct answer…