HOME/Articles/

python code find unique chars (snippet)

Article Outline

Python example 'python code find unique chars'

python code find unique chars

Python code example: python code find unique chars


#Find unique characters in a string

string = "pythondataon"   
unique = set(string)
new_string = ''.join(unique)
print(new_string)

More Python: https://pythonprogramminglanguage.com