I have a string
x = "acbbadb"
After applying set to x
set(x)
I am getting
{'b', 'a', 'c', 'd'}
How is the function deciding the sequence of characters. I want it to print the character in the order in which it is appearing in the string like
{'a', 'c', 'b', 'd'}
How can I do it?