Welcome to the Treehouse Community
Looking to learn something new?
Torger Angeltveit11,228 Points
Cant spot the issue, python beginner workspace
I get error on line 5.
name = input("whats your name? ") if name == "Torger": print(name + " is a lumberjack and he is OK! ") else: print(name + " sleeps all night and " + name + " works all day")
The console: python lumberjack.py
Your else statement is indented too far. It needs to be aligned with the IF statement. Also, be sure to reduce the indent of the following PRINT statement as well.
John McErlain12,508 Points
It appears that you may have an indent error where "else" does not align with "if"; though that would show up as an error on line 4.