fork download
  1. a = "successfully"
  2. b = []
  3. c = []
  4. for i in range(26):
  5. b.append(0)
  6. for i in a:
  7. if(b[ord(i)-97] == 0):
  8. b[ord(i)-97] = 1
  9. c.append(i)
  10. d = ''.join(c)
  11. print(d)
  12.  
Success #stdin #stdout 0.04s 9440KB
stdin
Standard input is empty
stdout
sucefly