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 trialGodswill Utionkpan
985 PointsHow do I do the third task?
I don't know what to add?
name = "Godswill"
treehouse = "Tree" + "house"
email_greeting = X + Y
4 Answers
Ryan Ackermann
14,665 PointsHello Godswill,
If you review the video previous to the quiz it explains how to format strings.
first_name = "Ryan"
last_name = "Ackermann"
full_name = first_name + " " + last_name
greeting = "Hello {}".format(full_name)
This is a simple script that declares 2 variable to hold my first and last name and a third to combine both into a single variable, with a space. the greeting variable is where I declare a final variable to hold a greeting using the formatting shown in the video.
Hope this helps you.
Have a great day :)
missfit
18,561 PointsI'm not sure how I got involved helping you answer your ? (meaning I'm not exactly the expert, but I'll give it a try...)
name = "Goodwill" treehouse = "Tree" + "house" email_greeting = "{}+{}".format (name, treehouse)
I'm not sure if this is correct, but I hope it helps!
Kenneth Love
Treehouse Guest Teacheremail_greeting
should end up being "Treehouse loves Goodwill"
. You should do this with either string concatenation (+
) or the .format()
method on strings.
Godswill Utionkpan
985 PointsRyan Ackermann Kenneth Love Thanks!