From 91453c1dd5fae4b5f28e61c6ece9a90b9ceb8dd6 Mon Sep 17 00:00:00 2001 From: BohdanBakhlul Date: Thu, 21 Nov 2019 17:01:23 +0100 Subject: [PATCH] 21_11 commit --- TaskX04/Makefile | 0 TaskX04/run | 12 ++++++++++++ 2 files changed, 12 insertions(+) create mode 100644 TaskX04/Makefile create mode 100644 TaskX04/run diff --git a/TaskX04/Makefile b/TaskX04/Makefile new file mode 100644 index 0000000..e69de29 diff --git a/TaskX04/run b/TaskX04/run new file mode 100644 index 0000000..c11de40 --- /dev/null +++ b/TaskX04/run @@ -0,0 +1,12 @@ +#!/usr/bin/python3 + +import sys +import re + +counter = 0 +x = sys.stdin; +for line in x: + if(re.search(r"[0-9] [0-9]* [a-z]( [0.9])*", str(line))): + counter += 1 + +print(counter)