От мой код:
# Зчитуємо заборонені склади
with open('data/errors.txt', 'r', encoding='utf-8') as symbols_file:
symbols = [symbol.strip() for symbol in symbols_file]
# Зчитуємо вміст вхідного файлу
with open('data/input.txt', 'r', encoding='utf-8') as input_file:
content = input_file.read()...