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

Python Python Basics (Retired) Ins & Outs Ins & Outs

I 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

Hi 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

Thanks, Luke!

Hey, no problem!

Remember to mark a 'Best Answer' in this thread so other forum members know your problem has been solved!

Thanks!

-Luke

Hey 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
khoreysmith
3,524 Points

I 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.

Kenneth Love
STAFF
Kenneth Love
Treehouse Guest Teacher

You 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)

Thanks, Kenneth! I like your teaching style.

First 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.

Thank you, John!

Kenneth Love
STAFF
Kenneth Love
Treehouse Guest Teacher

Tanya Bushnell The code that Luke Glazebrook posted passes just fine for me. Can you give us an updated paste of your code?

Thank you both! Finally got it to work!

Tim Ott
Tim Ott
2,249 Points

I 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
STAFF
Kenneth Love
Treehouse Guest Teacher

So, 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
Tim Ott
2,249 Points

I 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.

I 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
Kenneth Love
Treehouse Guest Teacher

Remember that using + on strings doesn't add a space. Yours is creating "treehouselovesjoe". Add some spaces and you'll be good.

I'm trying to add spaces but even with gradual addition of spaces it's not taking. Ugh. :(

Kenneth Love
Kenneth Love
Treehouse Guest Teacher
name = "joe"
treehouse = "Tree" + "house"
email_greeting = treehouse + " loves " + name

Should pass just fine.

Kenneth, thank you so much. I now know what to do when stringing variables together thats for sure!