14/15 remove duplicates (Correct but is my code simple, efficient and concise?)


def remove_duplicates(elements):
old = [ ]
new = [ ]
for i in elements:
if i not in new:
return new


That is exactly how I would do it! :slightly_smiling:


Thx julianchee, the really looks like the best way to think about it. I don't
think you need the old = [] list tho.