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! While you're at it, check out some resources Treehouse students have shared here.
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 trialJacob Murphy
Full Stack JavaScript Techdegree Graduate 32,014 PointsUnexpected EOF
Hey there, I've been following along with the video while watching, but everytime I try the run the first set of code i get an 'Unexpected EOF(End of File) while parsing' error on a last line that doesn't exist. Here's my code
print(re.findall(r''' ([-\w ]+,\s [-\w ]+)\t # Last and first names ([-\w\d.+]+@[-\w\d])\t # Email addresses ((?\d{3})?-?\s?\d{3}-\d{4})\t # Phone numbers ([\w\s]+,\s[\w\s]+)\t # Job and company (@[\w\d]+) #Twitter ''', data, re.X) (it is on multiple lines, though it does not printed as such in this question)
can anyone help me?
1 Answer
Oliver Gibbs
9,771 PointsTry putting an extra ) at the end. It looks like you haven't closed the initial print( so you get an unexpected end of file error - those normally mean you haven't closed an open code block.
Jacob Murphy
Full Stack JavaScript Techdegree Graduate 32,014 PointsJacob Murphy
Full Stack JavaScript Techdegree Graduate 32,014 PointsHey Oliver that seemed to work, I seem to always over look the simple stuff haha, thanks a bunch!