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 trialTanya Bushnell
181 PointsI got an error after I answered task 3 for stage 2 Ins & Outs. It says "Oops! It looks like task 1 is no longer passing
Stage 2 Ins & Outs, Challenge Task 3 of 3: Finally, create a new variable named email_greeting that puts treehouse and name into "X loves Y" so X is treehouse and Y is name.
I got task 1 and 2 correct. But when I answered task 3, it didn't respond if I answered it correctly, instead it says:
"Oops! It looks like Task 1 is no longer passing."
I think it's a bug. Frustrating, because I can't move forward. Here's what I entered:
name = ("Tanya")
treehouse = ("Tree") + ("house")
email_greeting = Treehouse + " loves " + Tanya
9 Answers
Luke Glazebrook
13,564 PointsHi Tanya!
When you are declaring your email_greeting you should use the variable names instead of manually writing out their values. The code the challenge will accept is below!
name = "Luke"
treehouse = "Tree" + "house"
email_greeting = treehouse + " loves " + name
As you can see I used 'treehouse' and 'name' in my variable email_greeting which is what the challenge was asking for! It will now output "Treehouse loves Luke! "
If you do not understand any of the code feel free to ask questions!
-Luke
Kenneth Love
Treehouse Guest TeacherYou have a variable named treehouse
, but your email_greeting
variable references a variable named Treehouse
. Python is case-sensitive, so treehouse
and Treehouse
aren't the same thing.
After that, you try to use a variable named Tanya
, but that's not a variable you've created.
Fix those errors and you'll get to the next step. I'll see if I can make the code challenge more informative.
(and, yes, you don't need those parentheses)
Tanya Bushnell
181 PointsThanks, Kenneth! I like your teaching style.
John Sanchez
3,325 PointsFirst of all, you should not have those parenthesis around your strings. Second, for the email_greeting variable, you need to make sure that you use the name and treehouse variables you crested when doing concatenation. Tanya and Treehouse are not defined.
Tanya Bushnell
181 PointsThank you, John!
Kenneth Love
Treehouse Guest TeacherTanya Bushnell The code that Luke Glazebrook posted passes just fine for me. Can you give us an updated paste of your code?
Tanya Bushnell
181 PointsThank you both! Finally got it to work!
Tim Ott
2,249 PointsI almost feel like I cheated with how I coded it. Goes to show that different ways work. I have to think that my code is a bit more bloated though
name = ("Tim")
tree = ("Tree")
house = ("house")
treehouse = (tree + house)
email_greeting = ("{} loves {}".format(treehouse, name))
Kenneth Love
Treehouse Guest TeacherSo, question for you all. Why the parentheses around everything? I don't use them in the screencasts, they're not needed. Did you all happen to come from a Lisp background? :D
Tim Ott
2,249 PointsI actually have bounced around and started out a bit in Java before deciding I wanted to learn python then move onto Java. It probably carried over from my new, but limited knowledge and habit from Java.
Joe Hill
15,063 PointsI can not answer this question. I keep getting the same error despite stringing it together correctly. Very frustrated as I have been on this for 3 hours now.
name = "joe" treehouse = "Tree" + "house" email_greeting = treehouse + "loves" + name
Kenneth Love
Treehouse Guest TeacherRemember that using + on strings doesn't add a space. Yours is creating "treehouselovesjoe". Add some spaces and you'll be good.
Joe Hill
15,063 PointsI'm trying to add spaces but even with gradual addition of spaces it's not taking. Ugh. :(
Kenneth Love
Treehouse Guest Teachername = "joe"
treehouse = "Tree" + "house"
email_greeting = treehouse + " loves " + name
Should pass just fine.
Joe Hill
15,063 PointsKenneth, thank you so much. I now know what to do when stringing variables together thats for sure!
Tanya Bushnell
181 PointsTanya Bushnell
181 PointsThanks, Luke!
Luke Glazebrook
13,564 PointsLuke Glazebrook
13,564 PointsHey, no problem!
Remember to mark a 'Best Answer' in this thread so other forum members know your problem has been solved!
Thanks!
-Luke
Tanya Bushnell
181 PointsTanya Bushnell
181 PointsHey Luke, tried your answer and still got the same error message: "Oops! It looks like Task 1 is no longer passing.". I think this must be a bug and also have a question in to support about it. I was hoping to work on Treehouse this weekend, but don't think I can move forward.
khoreysmith
3,524 Pointskhoreysmith
3,524 PointsI had a problem with this error too. I got confused because of the wording where it says so that it prints "x loves y". I think Treehouse should change the wording so that it's not so confusing, because as "coders" we take instructions very literally. Just a suggestion.