This commit is contained in:
Eryk Miszczuk 2019-11-05 11:15:24 +01:00
parent b56701529a
commit 197b6fecd3
3 changed files with 13 additions and 1 deletions

View File

@ -1,2 +1,2 @@
#!/bin/bash #!/bin/bash
python run.py "$@" python TaskA07/run.py "$@"

2
TaskA29/run Normal file
View File

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

10
TaskA29/run.py Normal file
View File

@ -0,0 +1,10 @@
import sys
import re
regex = re.compile('^[A-Za-z_][A-Za-z0-9_]*$')
for line in sys.stdin:
if regex.match(line.replace('\n', '')):
print('yes')
else:
print('no')