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 trialCheri Nadell
2,954 PointsAgain for the "Fix the spacing . . ." challenge, there's an error that I don't see existing.
I have received the: "Bummer! Your file has 1 error(s) on line(s) 15: no newline at end of file." error again. I don't see why or how this is happening. I checked for a newline and there doesn't seem to be one and yet, I keep getting an error! What's going on?
numbers = [1, 2, 3, 4, 5]
def add(num1, num2):
return num1 + num2
def subtract(num1, num2):
return num1 - num2
def mathy(num1, num2):
up = add(5 + 7, 7 + 9)
down = subtract(6, 3)
return add(up, down)
2 Answers
Chris Freeman
Treehouse Moderator 68,454 PointsThe challenge is looking for an empty blank line at the end. Add a new line after line 15 with no spaces on it.
Cheri Nadell
2,954 PointsThank you.