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 trial

Python Python Basics (2015) Python Data Types String concatenation

Help! How do I make "Micah" into the SUBJECT variable without it saying that task 1 is not conplete anymore?

When i try to make subject = "Micah" and subject =+ "Treehouse loves" it says that task 1 is incomplete

strings.py
name = "Micah"
subject =+

1 Answer

AJ Salmon
AJ Salmon
5,675 Points

Hey Micah, usually, when "Task one is no longer passing", you have a syntax error. That's the case with your code! The line subject =+ is invalid syntax. You're giving it the correct opperand, but you're not giving it anything to concatenate, or add together. To complete this challenge, the subject variable needs to be assigned the string "Treehouse loves Micah", and you need to accomplish this using string concatenation. So start with subject = "Treehouse loves " and then use the + opperand to add your name variable to the string. Happy coding!

Thanks! It solved the problem after a bit of troubleshooting! Thanks a ton!

AJ Salmon
AJ Salmon
5,675 Points

Happy to hear it! My pleasure :)