DEV Community

sankar
sankar

Posted on

program to take a string and returns the number unique characters in it

'''
program to take a string and returns the number unique characters in it
'''
string = "pythonpythonversion"
string2 = set(string)
print(string2)

Output:

{'y', 'o', 'p', 'e', 's', 'i', 't', 'r', 'h', 'n', 'v'}

Top comments (0)