12/15 Does your purify function take exactly one argument (a list of numbers)? Your code threw a "'builtin_function_or_method' object has no attribute 'getitem'" error


#1

1111110


#2

Hi @coderockstar33225,

Take a look at this line …

      z.append[y]

Are you attempting to make a method call there, and is that the correct syntax for it?


#3

I’m not sure what you mean. I wanted to add the value of y into the list z. is this the incorrect way of doing so?


#4

What should enclose the arguments in a method call, [] or ()?


#5

oh haha oops. thanks so much!


#6