DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
5+3 =
Submit