Advertisement
Guest User

My test code

a guest
Apr 25th, 2014
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. f = open('check.txt','r')
  2. orig = open('orig.txt','r')
  3.  
  4. for word in f:
  5.     for line in orig:
  6.         for word2 in line.split(" "):
  7.             word2 = word2.lower()            
  8.             if word in word2:
  9.                 word = word2
  10.             else:
  11.                 print('not found')
  12.         f.write(word)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement