Zadanie B03

This commit is contained in:
s450026 2020-11-15 16:00:08 +01:00
parent 1053fc3303
commit 9de4d8e4ac
3 changed files with 13 additions and 0 deletions

11
TaskB03/B03.py Normal file
View File

@ -0,0 +1,11 @@
import re
import sys
def line_contain_hamlet(line):
return re.search('19[0-9][0-9] r\.', line)
for line in sys.stdin:
if line_contain_hamlet(line):
print(line.rstrip('\n'))

0
TaskB03/Makefile Normal file
View File

2
TaskB03/run Executable file
View File

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