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

Task 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

You 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

This does not work for me. The code looks correct, but still tells me "task 1 is no longer passing."

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

If there are no spaces then the string would look like this.

TreehouselovesLovre

Ah no but I meant on the spaces inside of the string " loves ".

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