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 trialmochamad Ardyansah
2,735 Pointsnot work
not work code
name=("ardy")
subject=("Treehouse loves)
name + subject
1 Answer
Keith Whatling
17,759 Pointsname=("ardy")
subject=("Treehouse loves")
name + subject
Firstly Looking at the code, firstly you need to close the quote marks at the end of the subject variable ("Treehouse loves") if you look at the syntax highlighting in your example you'll see the closed parenthesis in pink.
Secondly you don't need the parenthesis () at all, These are not needed for this, they are generally in python to group bits of code to pass to other functions or in functions to receive code and for tuples and other things. Moment the () are creating a tuple variable of "ardy" and subject="Treehouse loves"
name="ardy"
subject="Treehouse loves"
name + subject
Thirdly the challenge says to create another variable called subject that concatenates (sticks the strings together), in the code about you are doing this as you would in the REPL.
So the code should be
subject = name + "Treehouse loves"
I hope this helps, keep at it, you'll be at the end of the track in no time!!!!