fork download
  1. #!/usr/bin/env python3
  2. import fileinput
  3.  
  4. for line in fileinput.input():
  5. if len(line) == len(set(line)): # all chars in the line are unique
  6. print(line, end='')
Success #stdin #stdout 0.04s 9108KB
stdin
abc
ded
fghi
stdout
abc
fghi