i thought double loops will work ok - but they don't.
The error message says "Oops, try again. remove_duplicates([4, 5, 5, 4]) returned  instead of [4, 5]"
What's wrong with the code?
I know that i can use
" if i not in no_duplicates" function, but still would like to learn more about strange habits of double loops!
def remove_duplicates(old_list): no_duplicates =  for i in old_list: for n in no_duplicates: if i != n: no_duplicates.append(i) return no_duplicates