remove duplicate elements in list python code example
Example: python remove duplicates
word = input().split()
for i in word:
if word.count(i) > 1:
word.remove(i)
word = input().split()
for i in word:
if word.count(i) > 1:
word.remove(i)