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 trialMax Peterson
1,723 Pointswhat am i doing wrong in the correct errors task of python basics
when i check work it comes up with a syntaxError and i'm not sure where that is coming from
print("Hello")
print(name)
name=jill
print("Let's do some math!")
print(5 + 5)
print("Thanks for playing along!')
3 Answers
Christopher Shaw
Python Web Development Techdegree Graduate 58,248 PointsYou are asking it to print name, before you set name. Jill must also be in "" marks.
name="jill"
print(name)
nicole lumpkin
Courses Plus Student 5,328 PointsRather than give you the answer, you should totally search the previous posts for this challenge. This has been asked and answered in many different ways in the past :) Simply search the community using the title of the challenge: correct errors. If after reading several of the explanations you are unable to make sense of things, comment on the this post and I will help you directly :)
Good Luck!
Steven Parker
231,271 PointsDon't delete any original lines.
You can change them, but don't delete any. That includes the blank ones!
Also, you're close, but take another look at that last line. Remember that quotes can be either the single ('
) or double ("
) kind, but they must match at both ends.
Max Peterson
1,723 PointsMax Peterson
1,723 PointsThanks. Doing that fixed part of the problem at least. I think I got multiple things wrong because it still isn't saying that I got it correct.