regex w domu odpowiednia zadanie po 439462 % 25

This commit is contained in:
B. Piatek 2020-01-24 16:44:03 +01:00
parent 1b6cd39dd0
commit 9a98ab9751

5
regexp/Task312.py Normal file
View File

@ -0,0 +1,5 @@
import re
def is_pin_code(string):
return bool(re.fullmatch("\d{4}(?<!0000)", string))