Как найти слово в файле python
with open('example.txt') as f:
if 'blabla' in f.read():
print("true")
Agreeable Ant
with open('example.txt') as f:
if 'blabla' in f.read():
print("true")
f = open(filename, "r")
whattoReturn = "None"
if strToFind in f.read():
whattoReturn = strToFind