This commit is contained in:
Kijowski Michał 2020-12-05 13:12:41 +01:00
parent e4c77e7be3
commit 578b11af9c
2 changed files with 16 additions and 0 deletions

0
TaskD03/Makefile Normal file
View File

16
TaskD03/run Executable file
View File

@ -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")