Dodano zadanie B01

This commit is contained in:
s450026 2020-11-12 18:02:57 +01:00
parent 8e8181c541
commit f0e69b77f0
3 changed files with 15 additions and 0 deletions

2
TaskA01/run Executable file
View File

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

11
TaskB01/B01.py Normal file
View 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
View File

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