Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- f = open('check.txt','r')
- orig = open('orig.txt','r')
- for word in f:
- for line in orig:
- for word2 in line.split(" "):
- word2 = word2.lower()
- if word in word2:
- word = word2
- else:
- print('not found')
- f.write(word)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement