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

Python Python Basics (2015) Python for Beginners Correct errors

How 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 ?

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
Chris Freeman
Treehouse Moderator 68,404 Points

You'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
Steven Parker
228,001 Points

Strings can be made using either type of quote, but any single string must start and end with the same kind.