diff --git a/TaskA07/run b/TaskA07/run new file mode 100644 index 0000000..07a6311 --- /dev/null +++ b/TaskA07/run @@ -0,0 +1,2 @@ +#!/bin/bash +python run.py "$@" diff --git a/TaskA07/run.py b/TaskA07/run.py new file mode 100644 index 0000000..3b60a4e --- /dev/null +++ b/TaskA07/run.py @@ -0,0 +1,10 @@ +import sys +import re + +regex = re.compile('(^[\*]+$)') + +for line in sys.stdin: + if regex.match(line.replace('\n', '')): + print('yes') + else: + print('no')