Remove repeated characters from a string
Anonymous
Answer in python: string = "hello David, how are you doing?" string2 = "" for letter in string: if (not letter in string2) or letter == " ": string2 = string2 + letter print string print string2
Check out your Company Bowl for anonymous work chats.