This commit is contained in:
Zofia Bączyk 2020-11-22 15:58:13 +01:00
parent 0b458818d6
commit 5fa160e9dd
2 changed files with 13 additions and 0 deletions

0
TaskC44/Makefile Normal file
View File

13
TaskC44/run Normal file
View File

@ -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("<NONE>")
else:
name = line.split()
print(name[len(name)-1])
else: print("<NONE>")