#Deleted


#1

I should've used ans.append() instead of ans=+; My 3.0+ compiler is really confusing (╯-_-)╯╧╧

Works fine on my PC. But the web console wouldn't let me pass...
'''Oops, try again. remove_duplicates([]) resulted in an error: list index out of range'''

I'd really appreciate it if someone could point my mistake. Thanks!
My code is as follows:

def remove_duplicates(lst):
ans=[lst[0]]
l=1
for i in range(len(lst)):
count=0
if l for j in range(l):
if lst[i]==ans[j]:
count+=1
if count==0:
ans.append(lst[i])
l+=1
return ans