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 String Concatenation

What's wrong with this?

lumberjack.py

name = input("What's your name? ") if name == "Luke": print(name + " is a lumberjack and he's OK!") else: print(name + " sleeps all night and " + name + " works all day!")

Now in the console:

treehouse:~/workspace$ python lumberjack.py
treehouse:~/workspace$

Chris Freeman
Chris Freeman
Treehouse Moderator 68,423 Points

Hi Luke, It's hard to tell when the posted code is not formatted. Look at the **Markdown Cheatsheet" to see how to wrap your code in triple backspaces and get nice color and spacing! Thanks!

1 Answer

Chris Freeman
MOD
Chris Freeman
Treehouse Moderator 68,423 Points

Your code works fine for me. Have you saved your file with File --> Save or using Cntl-S? The orange dot on the filename tab should disappear.

Ah, I forgot to save it. Thanks Chris!