searching pastebin #searches a text file for a keyword and prints the lines that match. searchfile = open("alice.txt", "r") for line in searchfile: if " left " in line: print (line) #spaces around keyword ensure accuracy searchfile.close() searching pastebin