hm
This commit is contained in:
parent
dfc535fb59
commit
9fc7b370c5
0
TaskA40/Makefile
Normal file
0
TaskA40/Makefile
Normal file
15
TaskA40/run
Normal file
15
TaskA40/run
Normal file
@ -0,0 +1,15 @@
|
||||
#!/usr/bin/python3
|
||||
|
||||
import re
|
||||
|
||||
def is_number(test):
|
||||
pattern = re.compile(r'^(1 roczek)|(2 latka)|(3 latka)|(4 latka)|(\d{1,2} (lat))$')
|
||||
|
||||
result = re.match(pattern, test)
|
||||
if result:
|
||||
return "yes"
|
||||
else:
|
||||
return "no"
|
||||
|
||||
for line in sys.stdin:
|
||||
print(is_number(line))
|
Loading…
Reference in New Issue
Block a user