From 5fa160e9dd1cbf8dc73ff97168bf6270d1c82a85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zofia=20B=C4=85czyk?= Date: Sun, 22 Nov 2020 15:58:13 +0100 Subject: [PATCH] atempt 1 --- TaskC44/Makefile | 0 TaskC44/run | 13 +++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 TaskC44/Makefile create mode 100644 TaskC44/run diff --git a/TaskC44/Makefile b/TaskC44/Makefile new file mode 100644 index 0000000..e69de29 diff --git a/TaskC44/run b/TaskC44/run new file mode 100644 index 0000000..c26249b --- /dev/null +++ b/TaskC44/run @@ -0,0 +1,13 @@ +#!/usr/bin/python3 + +import sys +import re + +for line in sys.stdin: + if re.match(r'([A-ZĆŚŁŹŻ][a-ząćęłńóśźż]*[a]\s([A-ZĆŚŁŹŻ][a-ząćęłńóśźż]+)+$)',line): + if re.match(r'(Kosma|Jarema)',line): + print("") + else: + name = line.split() + print(name[len(name)-1]) + else: print("")