Advertisement
Bad_Programist

Untitled

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