Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Python

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))

lumberjack('Madziya')

nakalkucing
nakalkucing
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!