How can i remove duplicate from a string in python?. My approaches have all been rejected. Below is a code i have : These are codes i've been stuck on, really don't know what to do from here:

def remove_duplicates(string):
   
    s = string.split()
    return string.replace(s[0],"")

def RemoveDupliChar(Word):
        NewWord = " "
        index = 0
        for char in Word:
                if char != NewWord[index]:
                        NewWord += char
                        index += 1
        print(NewWord.strip()) 