From 619de96228c4c8d665fd0149e0c519cf8a1a9f8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zofia=20B=C4=85czyk?= Date: Sun, 22 Nov 2020 16:16:36 +0100 Subject: [PATCH] atempt 1 --- TaskC04/Makefile | 0 TaskC04/run | 9 +++++++++ 2 files changed, 9 insertions(+) create mode 100644 TaskC04/Makefile create mode 100644 TaskC04/run diff --git a/TaskC04/Makefile b/TaskC04/Makefile new file mode 100644 index 0000000..e69de29 diff --git a/TaskC04/run b/TaskC04/run new file mode 100644 index 0000000..31d0e75 --- /dev/null +++ b/TaskC04/run @@ -0,0 +1,9 @@ +#!/usr/bin/python3 + +import sys +import re + +for line in sys.stdin: + if re.match(r'(555\s[0-9][0-9][0-9]\s|[0-9][0-9][0-9]$)|(555(-)[0-9][0-9][0-9](-)|[0-9][0-9][0-9]$)',line): + print("yes") + else: print("no")