view bin/uniqs @ 9710:a389b33b1a47

<oerjan> ` mv bin/whoops{s,}
author HackBot
date Thu, 17 Nov 2016 17:27:02 +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