0
How to make a function that removes duplicated items in a list using only for loop? Help me fix my code.
5 ответов
+ 1
1. You forgot : at the function definition
2. You used wrong indentation at the last line
0
yes.... but still not working.
0
Here is a recursive version of it. Only uses for-loop
https://code.sololearn.com/cIKLX7EpYut3/?ref=app
0
for j in unique:
if j==i:
break
else:
unique+=[i]
0
thanks Thomas