TaskX03 completed

This commit is contained in:
Eryk Miszczuk 2019-10-22 14:59:02 +02:00
parent bd18802057
commit 71f4363916
2 changed files with 10 additions and 0 deletions

2
TaskX03/run Normal file
View File

@ -0,0 +1,2 @@
#!/bin/bash
python2 TaskX03/run.py "$@"

8
TaskX03/run.py Normal file
View File

@ -0,0 +1,8 @@
import sys
import re
pattern = '[A-Za-z]+'
for line in sys.stdin:
match = re.match(pattern, line).group(0)
print str(len(match))+" "+match