+ 5

Challenge #6

Remove Duplicate elements in the list [1,2,4,7,9,1,3,4,6,0,7,2,1,2,2] into [1,2,4,7,9,3,6,0] Any programming language are most welcome !!

15th Nov 2017, 2:25 PM
Amar Dahake
9 Answers
19th Nov 2017, 9:46 AM
LukArToDo
LukArToDo - avatar
+ 7
https://code.sololearn.com/cvYV0i05LC2a/?ref=app my try: enter elements e. g 112484879
19th Nov 2017, 5:59 PM
Justine Ogaraku
Justine Ogaraku - avatar
+ 6
# It just need one line in python print(set(input())) # 😄
19th Nov 2017, 3:50 PM
#RahulVerma
#RahulVerma - avatar
20th Nov 2017, 8:20 AM
Ferhat Sevim
Ferhat Sevim - avatar
+ 6
in ruby...... a=[1,2,4,7,9,1,3,4,6,0,7,2,1,2,2] print a.uniq!
20th Nov 2017, 12:35 PM
SAKSHI
SAKSHI - avatar
19th Nov 2017, 2:17 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 4
a=list(1,2,4,7,9,1,3,4,6,0,7,2,1,2,) b=[] for I in a: if I in b: continue else: b.append(I) print b
19th Nov 2017, 5:16 PM
Tamilselvan S
Tamilselvan S - avatar
22nd Nov 2017, 7:20 PM
Aditya Rana