djfz-24_25/TaskA02/task2.py
2024-10-28 12:45:42 +01:00

6 lines
212 B
Python

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