From 6fe73ba5fc12adf2351a2c2736d3483ed1e080a4 Mon Sep 17 00:00:00 2001 From: deadsmond <01.lewicki@gmail.com> Date: Mon, 28 Oct 2019 20:30:25 +0100 Subject: [PATCH] hm --- TaskA40/run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TaskA40/run b/TaskA40/run index 3af9eae..6ba685c 100644 --- a/TaskA40/run +++ b/TaskA40/run @@ -3,7 +3,7 @@ import sys import re def is_number(test): - pattern = re.compile(r'^(1 roczek)|([2-4] latka)|([5-9]|(1[0-9])|20|21 lat)|(([2-9][2-4]) lata)|(([2-9](156789)|10[0-9]|110) lat)$') + pattern = re.compile(r'^(1 roczek)|([2-4] (lata|latka))|([5-9]|(1[0-9])|20|21 lat)|(([2-9][2-4]) lata)|(([2-9](156789)|10[0-9]|110) lat)$') result = re.match(pattern, test) if result: