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 don't understand the question?

i did it by if else and it runs on visual studio but it doesn't run here!!

name.py

yes it is the answer thank you bro this is my first day in treehouse i need ti get use to it.

1 Answer

Ryan Ruscett
Ryan Ruscett
23,309 Points

Hola,

I can't say for sure why it works in Visual Studio and not in the workspace but does your code look like this?

name = "Ryan"
treehouse = "Tree" + "house"
email_greeting = treehouse + " loves " + name

That is the proper code for the exercise but you didn't post any code so I can't see what it looks like. But just a suggestion, I wouldn't use Visual Studio for anything other than .net programming. Try eclipse or Intellij.

Let me know if your code looked like mine or not? If you post your code I can probably tell you why it worked there and not here. But this is the code to finish the challenge.