how to remove only one duplicate in a list in 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)