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 trialLuke Wunderlich
Courses Plus Student 179 PointsWhat'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$
1 Answer
Chris Freeman
Treehouse Moderator 68,441 PointsYour 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.
Luke Wunderlich
Courses Plus Student 179 PointsAh, I forgot to save it. Thanks Chris!
Chris Freeman
Treehouse Moderator 68,441 PointsChris Freeman
Treehouse Moderator 68,441 PointsHi 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!