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

My code is the same, but it's treating my name as if it were false.

below is my code

first_name = input("What is you name?") print("Hello,", first_name) if first_name == "Rouillie": print(first_name, "is learning Python") print("Have a great day {}! ".format(first_name) )

below is my console

Have a great day Rouillie!
treehouse:~/workspace$

When you copy and paste your code into a comment here on the support threads, surround your code block with ```(before and after).

In Python, indentation is super important, so it may be skipping your first print. It's hard to tell what is where when your code is not shown as a code block.

1 Answer

@Brice Roberts Thank you. You were correct! I figured it out before following up here. Indentation was an issue. Fixed it, and everything printed fine! Thanks again.