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 trialBrianna Washington
576 PointsHow is the answer suppose to look, when I cannot delete lines of code. Do type what's correct underneath?
i.e..... print("Thanks for playing along') has a syntax error, so is the right way to do it, print("Thanks for playing along!") and so on for the others, like, print(5+5) underneath the wrong code ?
print("Hello")
print(name)
name = "Hello"
print("Let's do some math!")
print(5 + "a")
5 + 5
print("Thanks for playing along!')
"Thanks for playing along!"
2 Answers
Chris Freeman
Treehouse Moderator 68,441 PointsYou've on the right path. Note that a variable needs to be defined before it's referenced. The rest is mostly missing or mismatched quotation marks. You can't concatenate/add an integer and a string, They need to both be numbers (add) or strings (concatenation).
Post back if you need more help. Good luck!
Steven Parker
231,269 PointsStrings can be made using either type of quote, but any single string must start and end with the same kind.