view bin/uniqs @ 12249:e3ff7c5a342f draft

<oerjan> undo 12128
author HackEso <hackeso@esolangs.org>
date Fri, 06 Dec 2019 04:41:05 +0000
parents c989a1669243
children
line wrap: on
line source

#!/usr/bin/python
s=set()
try:
 while True:
  l=raw_input()
  if l not in s:
   s.add(l)
   print(l)
except EOFError:
 pass