repl.it
@peachyog/

Remove duplicates

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
Allwords = [i for i in input().split(',')]
nAllwords = []
for i in range(len(Allwords)):
  if Allwords[i] not in nAllwords:
    nAllwords.append(Allwords[i]) 
print(','.join(nAllwords))



Fetching token
?