Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python program to remove duplicate characters of a given string.

>>> foo = 'mppmt'
>>> ''.join(sorted(set(foo), key=foo.index))
'mpt'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Python #program #remove #duplicate #characters
ADD COMMENT
Topic
Name
5+3 =