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

Matt Lewis
Matt Lewis
936 Points

I have no idea what this question is asking. Maybe i need help with the terminology...

Im not sure what the question is asking me to do. Apparently I do not know what the different things are....i.e. "variable", "value"....

name.py
name = ("What's your name? ")

if name == "Matt":
  print("{} is having a hard time.".format(name))
treehouse = ("Tree + name + house")

2 Answers

Simon Merrick
Simon Merrick
18,305 Points

I have no idea what the question is but there are a few things i can see off the bat. If you are trying to ask the user for their name, and then store it in a name variable and then print it out, you want this

  name = input("What's your name?") #prompt the user to enter their name

  if name == "Matt":
    print("{} is having a hard time".format(name))

  #not sure what you are doing with this line, but if it is supposed to be part of the if statement it needs to be indented
  treehouse = "Tree " + name + " house"
Matt Lewis
Matt Lewis
936 Points

Thanks for trying to help. I figured it would give the question i was asking about. I found the answer. I appreciate it

Simon Merrick
Simon Merrick
18,305 Points

Hey Matt, glad you found the answer you were looking for.Sorry I'm pretty new to using the forums, I think I worked it out now it does seem to give a link to the problem.

Happy Coding, stick with it because its worth it.