SyntaxFix
Write A Post
Hire A Developer
Questions
d = {} s="YOUR_DESIRED_STRING" res=[] for c in s: if c not in d: res.append(c) d[c]=1 print ("".join(res))