diff --git a/TaskD03/Makefile b/TaskD03/Makefile new file mode 100644 index 0000000..e69de29 diff --git a/TaskD03/run b/TaskD03/run new file mode 100755 index 0000000..586102b --- /dev/null +++ b/TaskD03/run @@ -0,0 +1,16 @@ +#!/usr/bin/python3 + +import sys +import re + +for input in sys.stdin.readlines(): + answer = re.findall('([\W]|^)[a-ząćęłńóśźż][\w]*',input) + if answer: + print(str(len(answer))+" ", end="") + else: + print("0 ", end="") + answer = re.findall('([\W]|^)[A-ZĄĆĘŁŃÓŚŹŻ][\w]*',input) + if answer: + print(str(len(answer))) + else: + print("0")