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 trialYing Liu
187 Pointsfor task 2, check work, it shows"it seems taskone missing"
name="karen" name="subject" subject="treehouse loves " +"karen" print(name+suject)
name="karen"
name="subject"
subject="treehouse loves " +"karen"
print(name+suject)
2 Answers
dojewqveaq
11,393 PointsHey Ying,
let's understand what the task is asking us to do. First, it want's us to set our name to the variable 'name'. Then, it want's us to set another variable called subject with the value 'Treehouse loves' + our name. To concatenate in python you use the '+' sign, and you can use a variable too. So it should be something like this:
name = 'Ying'
subject = 'Treehouse loves ' + name
Michael Bustamante
2,711 PointsHere is the code your looking for :)
name = "Michael"
subject = "Treehouse loves {}".format(name)