def scanner(name, function):
fname = open(name, 'r')
for line in fname:
function(line)
fname.close()
def find_big_brother(line):
if "big brother" in line.lower():
print(line.rstrip())
scanner("1984.txt", find_big_brother)