Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
Python program to remove duplicate characters of a given string.
Johanna Mitterbacher
Programming language:
Python
2021-06-17 19:31:27
0
Q:
Python program to remove duplicate characters of a given string.
Barb
Code:
Python
2021-07-06 18:04:41
>>> foo = 'mppmt' >>> ''.join(sorted(set(foo), key=foo.index)) 'mpt'
3
Tags
string
program
python
remove
character
characters
Related
remove all occurrences of a character in a list python
python remove similar string with whitespace from list
python remove non letters from string
delete certain characters from a string python
txt file duplicate line remover python
remove consecutive duplicates python
remove special characters from string python
python remove multiple characters from string
python remove last characters from string
python remove duplicate numbers
python remove last 4 characters from string
python remove duplicates words from string
python remove special characters from list
python delete duplicate lines in file
how to remove all characters from a string in python
strip first occurence of substring python
New to Communities?
Join the community