I have a function that has takes in a string "secret"
sec = set(secret)
print sec
output: set(['A', 'C', 'E', 'I', 'H', 'M', 'S', 'T'])
Assuming I called the function sending in the string "Mathematics", how do I get an ordered set. I'm looking to get unique characters in the original element order. In other words, I want the output to be "MATHETICS" not "ACEIHMST"