Dodano zadanie B02

This commit is contained in:
s450026 2020-11-12 18:14:01 +01:00
parent 57f8834280
commit 1053fc3303
4 changed files with 14 additions and 1 deletions

11
TaskB02/B02.py Normal file
View File

@ -0,0 +1,11 @@
import re
import sys
def line_contain_hamlet(line):
return re.search('pies\s|pies\s|\spies\s', line, re.IGNORECASE)
for line in sys.stdin:
if line_contain_hamlet(line):
print(line.rstrip('\n'))

0
TaskB02/Makefile Normal file
View File

2
TaskB02/run Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
python3 TaskB02/B02.py "$@"

View File

@ -1,2 +1,2 @@
POINTS
10
9

1 POINTS
2 10 9