Dodano zadanie B02
This commit is contained in:
parent
57f8834280
commit
1053fc3303
11
TaskB02/B02.py
Normal file
11
TaskB02/B02.py
Normal file
@ -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'))
|
0
TaskB02/Makefile
Normal file
0
TaskB02/Makefile
Normal file
2
TaskB02/run
Executable file
2
TaskB02/run
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
python3 TaskB02/B02.py "$@"
|
@ -1,2 +1,2 @@
|
||||
POINTS
|
||||
10
|
||||
9
|
||||
|
|
Loading…
Reference in New Issue
Block a user