Answers for "how to remove only one duplicate in a list in python"

1

python remove duplicates

word = input().split()

for i in word:
  if word.count(i) > 1:
    word.remove(i)
Posted by: Guest on February-04-2020

Code answers related to "how to remove only one duplicate in a list in python"

Python Answers by Framework

Browse Popular Code Answers by Language