SyntaxFix
Write A Post
Hire A Developer
Questions
if the result does not need to be order-preserving, then you can simply use a set
>>> ''.join(set( "aaabcabccd")) 'acbd' >>>