Removing duplicates


#1


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:
            new_list.append[i]
            
        
    
    return new_list


#2

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


#3

SMASHED IT!

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


#4