word = "слово"
lets = []
for i in word:
if word.count(i) > 1 and i not in lets:
word = word.replace(i, "")
lets.append(i)
print(word)
word = "слово"
lets = []
for i in word:
if word.count(i) > 1 and i not in lets:
word = word.replace(i, "")
lets.append(i)
print(word)