Building useful clases help


#1


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

Traceback (most recent call last):
File "python", line 8, in
File "python", line 3, in init
TypeError: 'int' object is not iterable


i feel like my code is correct, what am i doing wrong?


    def __init__(self, x, y, z):
        selx,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

This line:

selx,x = x

i see two problems in this line, do you see them as well?


#3

Thank you, i didn't see the typo because of the lighting


#4

the error message:

File "python", line 3, in init

gave you the line which needed a closer look, all good now?


#5

Yup, thanks for everything!


#6