<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>
<Below this line, add a link to the EXACT exercise that you are stuck at.>
<In what way does your code behave incorrectly? Include ALL error messages.>
error: list out of range
<What do you expect to happen instead?>
I do whatever the hint told me and the result was right. I don’t know what is wrong here
def count(x, j): for i in x: if i == j: return True else: return False def remove_duplicates(x): z = [x] for i in range(1, len(x)): if count(z, x[i]) == False: z.append(x[i]) return z print remove_duplicates([1, 2, 2, 4, 5, 5, 4]).