Zadanie B03
This commit is contained in:
parent
1053fc3303
commit
9de4d8e4ac
11
TaskB03/B03.py
Normal file
11
TaskB03/B03.py
Normal 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
0
TaskB03/Makefile
Normal file
2
TaskB03/run
Executable file
2
TaskB03/run
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
python3 TaskB03/B03.py "$@"
|
Loading…
Reference in New Issue
Block a user