task2 done

This commit is contained in:
Robert 2024-10-28 12:45:42 +01:00
parent 35dfc38168
commit d9c12d5d2f

5
TaskA02/task2.py Normal file
View File

@ -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"))