From d9c12d5d2f4615c034580b99c9385fe5de4c60dc Mon Sep 17 00:00:00 2001 From: Robert Date: Mon, 28 Oct 2024 12:45:42 +0100 Subject: [PATCH] task2 done --- TaskA02/task2.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 TaskA02/task2.py diff --git a/TaskA02/task2.py b/TaskA02/task2.py new file mode 100644 index 0000000..02c0538 --- /dev/null +++ b/TaskA02/task2.py @@ -0,0 +1,5 @@ +with open("polish_wiki_excerpt.in", encoding="utf8") as f: + lines = f.readlines() + for line in lines: + if "Pies " in line or " pies " in line or "pies\n" in line: + print(line.strip("\n"))