0

How to make a function that removes duplicated items in a list using only for loop? Help me fix my code.

https://code.sololearn.com/cp5uILFtK7cZ/?ref=app

11th Aug 2019, 8:31 AM
Beki Mehari
Beki Mehari - avatar
5 Answers
+ 1
1. You forgot : at the function definition 2. You used wrong indentation at the last line
11th Aug 2019, 8:41 AM
Airree
Airree - avatar
0
yes.... but still not working.
11th Aug 2019, 8:55 AM
Beki Mehari
Beki Mehari - avatar
0
Here is a recursive version of it. Only uses for-loop https://code.sololearn.com/cIKLX7EpYut3/?ref=app
11th Aug 2019, 11:03 AM
Trigger
Trigger - avatar
0
for j in unique: if j==i: break else: unique+=[i]
11th Aug 2019, 11:50 AM
Diego
Diego - avatar
0
thanks Thomas
11th Aug 2019, 1:36 PM
Beki Mehari
Beki Mehari - avatar