From b56701529ae8ddbb99a63d42fa0a0192c0e35ba4 Mon Sep 17 00:00:00 2001 From: Eryk Miszczuk Date: Tue, 5 Nov 2019 11:02:47 +0100 Subject: [PATCH] TaksA07 --- TaskA07/run | 2 ++ TaskA07/run.py | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100644 TaskA07/run create mode 100644 TaskA07/run.py 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')