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


seems my code won't write in the console

def lumberjack(name): if name.upper()=='Madziya' print('madziya is a lumberjack and he is ok') else: print('{} sleeps all night and {} works all day'.format(name))


12,964 Points

Hey, I'd love to help. But I can't read your code. Would you mind putting it into proper syntax? If you don't know how to do this, check the Markdown Cheatsheet. :) All the best, Nakal

1 Answer

Andrei Oprescu
Andrei Oprescu
9,547 Points

It seems like you forgot about a ':' on the line 'if name.upper()=='Madziya''

Add that and see if it helps!