Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import re
- file1 = open('6.txt','r')
- file2 = open('vyborka.txt','r')
- vyborka = [line.strip() for line in file2]
- count = 0
- for line in file1.readlines():
- for word in line.lower().split():
- if word in vyborka:
- count += 1
- print(count)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement