Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
"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 68,404 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. :-)