From 71f4363916fa9c5a84e1c2d5fe086f09783ce66b Mon Sep 17 00:00:00 2001 From: Eryk Miszczuk Date: Tue, 22 Oct 2019 14:59:02 +0200 Subject: [PATCH] TaskX03 completed --- TaskX03/run | 2 ++ TaskX03/run.py | 8 ++++++++ 2 files changed, 10 insertions(+) create mode 100644 TaskX03/run create mode 100644 TaskX03/run.py diff --git a/TaskX03/run b/TaskX03/run new file mode 100644 index 0000000..4bd61cb --- /dev/null +++ b/TaskX03/run @@ -0,0 +1,2 @@ +#!/bin/bash +python2 TaskX03/run.py "$@" diff --git a/TaskX03/run.py b/TaskX03/run.py new file mode 100644 index 0000000..5560742 --- /dev/null +++ b/TaskX03/run.py @@ -0,0 +1,8 @@ +import sys +import re + +pattern = '[A-Za-z]+' + +for line in sys.stdin: + match = re.match(pattern, line).group(0) + print str(len(match))+" "+match