with open("apple.txt", "r", encoding="utf8") as file: contents = file.read() with open("banana.txt", "r", encoding="utf8") as f: best = f.read()