27_11_commit

This commit is contained in:
BohdanBakhlul 2019-11-27 17:05:45 +01:00
parent 91453c1dd5
commit 591d0f1ad9
6 changed files with 24 additions and 0 deletions

0
TaskE01/Makefile Normal file
View File

8
TaskE01/run Normal file
View File

@ -0,0 +1,8 @@
#!/usr/bin/python3
import sys, re
for line in sys.stdin:
if (re.search(r'[A-Z][0-9][0-9]', line)):
print('true')
else:
print('false')

0
TaskE02/Makefile Normal file
View File

8
TaskE02/run Normal file
View File

@ -0,0 +1,8 @@
#!/usr/bin/python3
import sys, re
for line in sys.stdin:
if (re.search(r'(^(?!555)((\d{3})-(\d{3})-(\d{3})$))|((\d{3}) (\d{3}) (\d{3})$)', line)):
print('true')
else:
print('false')

0
TaskE03/Makefile Normal file
View File

8
TaskE03/run Normal file
View File

@ -0,0 +1,8 @@
#!/usr/bin/python3
import sys, re
for line in sys.stdin:
if (re.search(r'^\D*[AEIOUaeiou]\D*$', line)):
print('true')
else:
print('false')