diff --git a/TaskB02/B02.py b/TaskB02/B02.py new file mode 100644 index 0000000..32983ff --- /dev/null +++ b/TaskB02/B02.py @@ -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')) \ No newline at end of file diff --git a/TaskB02/Makefile b/TaskB02/Makefile new file mode 100644 index 0000000..e69de29 diff --git a/TaskB02/run b/TaskB02/run new file mode 100755 index 0000000..1bdf655 --- /dev/null +++ b/TaskB02/run @@ -0,0 +1,2 @@ +#!/bin/bash +python3 TaskB02/B02.py "$@" \ No newline at end of file diff --git a/result.csv b/result.csv index bd83fb6..5f64e8f 100644 --- a/result.csv +++ b/result.csv @@ -1,2 +1,2 @@ POINTS -10 +9