Welcome to the Treehouse Community
Looking to learn something new?
"Task 1 is no longer passing", but I did NOT even change it
Can someone please shed some light on this one. I'm trying to solve Task 2 of 2 of the Code Challenge on Regular Expressions. Task 1 has already passed, and I didn't change it. Then, I submit my code for Task 2, but I'm getting this weird error given in the subject line above. Thanks for any insights you can provide.
import re def first_number(any_str): return(re.search(r'\d ', any_str)) def numbers(count, some_string): result = (re.search(r"\d" * count, some_string) return result
Chris FreemanTreehouse Moderator 67,989 Points
A previous task may fail if a new syntax error is introduced anywhere in the code. It looks like there is a missing right paren in the second function.
Thanks Chris, I added the missing right paren at the end, and it finally passed. However, that error "Task 1 is no longer passing" was really misleading. :-)