push attempt

This commit is contained in:
s444379 2020-12-06 16:15:00 +01:00
parent c17ac10202
commit 23ce2e2930
2 changed files with 27 additions and 0 deletions

0
TaskD02/Makefile Normal file
View File

27
TaskD02/run Normal file
View File

@ -0,0 +1,27 @@
#!/usr/bin/python3
import sys
import re
for line in sys.stdin.readlines():
ctr = 0
reResult = re.findall('[a-ząćęłńóśźż]', line)
if reResult:
ctr += len(reResult)
print(str(len(reResult))+" ",end = "")
else:
print("0 ", end = "")
reResult = re.findall('[A-ZĄĆĘŁŃÓŚŹŻ]', line)
if reResult:
ctr += len(reResult)
print(str(len(reResult))+" ",end = "")
else:
print("0 ", end = "")
reResult = re.findall('[0-9]', line)
if reResult:
ctr += len(reResult)
print(str(len(reResult))+" ",end = "")
else:
print("0 ", end = "")
print(str(len(line)-1 -ctr))