djfz-2023-s464986/TaskD02/run.py
Polevara Veronika 99d7880460 Zmiana D-Task
2023-12-10 17:37:17 +01:00

14 lines
234 B
Python

import re
import sys
found_lines = []
for line in sys.stdin:
if re.search(r'\b\s*pies\s*\b', line, flags=re.IGNORECASE):
found_lines.append(line.strip())
if found_lines:
print('\n'.join(found_lines))