Advertisement
crsandu

Untitled

Nov 16th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. def search():
  2. fin = open("data.txt", "rb") #open in read mode
  3. for I in fin:
  4. for K in range(0, len(I)-1):
  5. if(I[K] == "S" and I[K+1] == "n" and I[K+2] == 'e' and I[K+2] == 'e' and I[K+8] == "{"):
  6. print I
  7.  
  8.  
  9. search()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement