Task A29
This commit is contained in:
parent
b56701529a
commit
197b6fecd3
@ -1,2 +1,2 @@
|
||||
#!/bin/bash
|
||||
python run.py "$@"
|
||||
python TaskA07/run.py "$@"
|
||||
|
2
TaskA29/run
Normal file
2
TaskA29/run
Normal file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
python TaskA29/run.py "$@"
|
10
TaskA29/run.py
Normal file
10
TaskA29/run.py
Normal 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')
|
Loading…
Reference in New Issue
Block a user