fork download
  1. # your code goes here
  2.  
  3. s = 'adhdhcmnhlkgmg,gk'
  4. def find_singles(string):
  5. for char in set(string):
  6. if string.count(char) == 1:
  7. yield char
  8.  
  9. print list(find_singles(s))
  10.  
Success #stdin #stdout 0s 9024KB
stdin
Standard input is empty
stdout
['a', 'c', 'l', 'n', ',']