Check if a string matches any of the lines of a txt file, and if it doesn't match any then add it to that txt file
Check if a string matches any of the lines of a txt file, and if it doesn't match any then add it to that txt file Question: import os if (os.path.isfile(‘data_file.txt’)): data_memory_file_path = ‘data_file.txt’ else: open(‘data_file.txt’, "w").close() data_memory_file_path = ‘data_file.txt’ #Example input list with info in sublists reordered_input_info_lists = [ [[‘corre’], [‘en el patio’], [‘2023-02-05 …