Sep-06-2019, 03:36 PM
One way would be
print('"' + searchfor + '" is in the file.')but the more pythonic way is using python >= 3.6 and f-strings
print(f'"{searchfor}" is in the file.')