import re def is_pin_code(string): return bool(re.fullmatch("\d{4}(?