I have a code that reads multiple text files and print the last line.
from glob import glob text_files = glob(\'C:/Input/*.txt\') for file_name in text_files: