You are viewing a single comment's thread. Return to all comments →
This statement doesn't look right to me:
len(re.findall(regex_alternating_repetitive_digit_pair, P)) < 2)
It should be replaced with:
len(re.findall(regex_alternating_repetitive_digit_pair, P)) == 0)
Try running you code against this one: 454286. (Corrected)
Validating Postal Codes
You are viewing a single comment's thread. Return to all comments →
This statement doesn't look right to me:
len(re.findall(regex_alternating_repetitive_digit_pair, P)) < 2)
It should be replaced with:
len(re.findall(regex_alternating_repetitive_digit_pair, P)) == 0)
Try running you code against this one: 454286. (Corrected)