Dodano zadanie B01
This commit is contained in:
parent
8e8181c541
commit
f0e69b77f0
2
TaskA01/run
Executable file
2
TaskA01/run
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
python3 TaskA01/A01.py "$@"
|
11
TaskB01/B01.py
Normal file
11
TaskB01/B01.py
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
import re
|
||||||
|
import sys
|
||||||
|
|
||||||
|
|
||||||
|
def line_contain_hamlet(line):
|
||||||
|
return re.search('Hamlet', line)
|
||||||
|
|
||||||
|
|
||||||
|
for line in sys.stdin:
|
||||||
|
if line_contain_hamlet(line):
|
||||||
|
print(line.rstrip('\n'))
|
2
TaskB01/run
Executable file
2
TaskB01/run
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
python3 TaskB01/B01.py "$@"
|
Loading…
Reference in New Issue
Block a user