Removing duplicates


Hello, stuck on the removing duplicates excercise

Getting a syntax error. I think my code is logical but perhaps I am missing something?

def remove_duplicates(numbers):
    new_list = []
    for i in numbers:
        if i is not in new_list:
    return new_list


to check if something is in a list already use not in, not is not in

is serves a different purpose in python

also, append() is a function call, so it requires parentheses rather then square brackets



print "Thanks so much pal! You are the best!"