I want to append characters to a string, but want to make sure all the letters in the final list are unique.
Example: \"aaabcabccd\" →
\"aaabcabccd\"
if the result does not need to be order-preserving, then you can simply use a set
>>> ''.join(set( "aaabcabccd")) 'acbd' >>>