+ 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 !!
9 Respuestas
+ 16
+ 7
https://code.sololearn.com/cvYV0i05LC2a/?ref=app
my try:
enter elements e. g 112484879
+ 6
# It just need one line in python
print(set(input()))
# 😄
+ 6
Another way in Python.
https://code.sololearn.com/chGgNFAZ7ICL/?ref=app
+ 6
in ruby......
a=[1,2,4,7,9,1,3,4,6,0,7,2,1,2,2]
print a.uniq!
+ 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