The first function I didn't make myself but the other one I made.
def remove_duplicates(nums): newList =  for i in nums: if i not in newList: newList.append(i) return newList print remove_duplicates([4, 5, 5, 4]) def remove_uplicates(Nums): NewList =  for j in Nums: if j == j: Nums.remove(j) NewList.append(j) return NewList print remove_uplicates([4, 5, 5, 4])
So my question is why does codecademy accept the first function and not the one i made which is the last function? I changed the letters in them so i could check if I got the same outcome and I did. I was so glad when i did the function with out coming here but then it said maybe you should make copy. so i went here and got the function which is listed first.