From 2045b4eb99fa8d1ce7bf1b4d69c8517a9d8eea67 Mon Sep 17 00:00:00 2001 From: LuminoX Date: Wed, 29 Jan 2025 02:10:26 +0100 Subject: [PATCH] D5 works --- TaskD05/taskD5.py | 2 +- checker.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/TaskD05/taskD5.py b/TaskD05/taskD5.py index 80f0b72..ac0c209 100644 --- a/TaskD05/taskD5.py +++ b/TaskD05/taskD5.py @@ -2,7 +2,7 @@ import re final = [] -with open('simple.in', encoding='utf8') as file: +with open('polish_wiki_excerpt.in', encoding='utf8') as file: lines = file.readlines() pattern = r"(\W*[\wąćęłńóśźżĄĆĘŁŃÓŚŹŻ]+\W+[\wąćęłńóśźżĄĆĘŁŃÓŚŹŻ]+\W)[\wąćęłńóśźżĄĆĘŁŃÓŚŹŻ]+" diff --git a/checker.py b/checker.py index 626f692..9f8db38 100644 --- a/checker.py +++ b/checker.py @@ -1,7 +1,7 @@ -with open("./TaskD02/polish_wiki_excerpt.out", 'r', encoding='utf8') as f: +with open("./TaskD05/polish_wiki_excerpt.out", 'r', encoding='utf8') as f: lines1 = f.readlines() -with open("./TaskD02/polish_wiki_excerpt.exp", 'r', encoding='utf8') as f: +with open("./TaskD05/polish_wiki_excerpt.exp", 'r', encoding='utf8') as f: lines2 = f.readlines() i = 1