Advertisement
Bad_Programist

Untitled

Dec 16th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. Text = []
  2. with open ('input.txt') as f:
  3.     for line in f:
  4.         for i in line.split():
  5.             Text.append(i)
  6. while Text != []:
  7.     b = set(Text)
  8.     for i in b:
  9.         Text.remove(i)
  10. with open ('output.txt', 'w') as F:
  11.     print(min(b), file = F)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement