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 trialyes jones
119 Pointsstring concatenation
how to concatenates string
name="yes"
subj
1 Answer
stjarnan
Front End Web Development Techdegree Graduate 56,488 PointsHi Yes,
You can concatenate strings like this in Python (let's imagine we have a variable called variable containign another string):
"This is an " + "example of " + "concatenating using strings and variables" + variable
You see how you can use the + sign to add to a string? On the task you're on they want you to create a variable called name storing your name, and then create another variable called subject that concatenates the string "Treehouse loves " with the name variable.
Does that make any sense to you?
I hope that helps,
Jonas
yes jones
119 Pointsyes jones
119 Pointsthanks man