djfz-2023-s464933/TaskD02/run.py
2023-12-17 21:57:50 +01:00

12 lines
189 B
Python

import re
import sys
def pies(input):
for _, l in enumerate(input, start=1):
if re.search(r'\bpies\b', l, flags=re.IGNORECASE):
print(l.strip())
pies(sys.stdin)