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
Lovre Domjanovic
423 PointsTask 1 is no longer passing.
Hello, I just started the basic python function and at the ins & outs quiz it asks me to: 1.) create a variable called name with your name in it 2.) create a variable called treehouse combining strings "Tree" and "house" in it. 3.) create a variable called email_greeting combining variables treehouse, string "loves" and variable name in it.
And my code looks like this:
name = "Lovre" treehouse = "Tree" + "house" email_greeting = treehouse "loves" name
now it's fine until Task 3, when I put the last task in it says, bummer, bla bla, and when I try something like: email_greeting = ""treehouse" + loves + "name"" then it gives me, oops Task 1 is no longer passing, or email_greeting = treehouse + "loves" + name, same thing, could anyone tell me what I am doing wrong?
5 Answers
Martin Cornejo Saavedra
18,132 PointsYou have to used the defined variables in task 1 and 2, and also add blank spaces before and after "loves"
email_greeting = treehouse + " loves " + name
Lovre Domjanovic
423 PointsAh okay thank you very much, but why does there have to be spaces in a normal string tho, also I edited the question I did indeed use treehouse with non capital t in the tasks.
Martin Cornejo Saavedra
18,132 PointsIf there are no spaces then the string would look like this.
TreehouselovesLovre
Lovre Domjanovic
423 PointsAh no but I meant on the spaces inside of the string " loves ".
Lovre Domjanovic
423 PointsOwen you made a mistake somewhere else in the code, when it says usually task 1 is no longer passing that means you have done something wrong in tasks before this, try to find out what, hope this helps.
Owen Lystrup
395 PointsOwen Lystrup
395 PointsThis does not work for me. The code looks correct, but still tells me "task 1 is no longer passing."