def validate_postal_code(postal_code): if not postal_code: return False return len(raw_postal_code(postal_code)) == POSTAL_CODE_CHAR_LEN