Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def filesStringSearch():
- infile = open('example.txt')
- a = input('Search for a word: ')
- result = infile.read().find(a)
- #result = a.find:
- #for a in infile:
- if a.find:
- print("True")
- elif a < 3:
- print("-1")
- else:
- print("False")
- return
Add Comment
Please, Sign In to add comment