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) Say Hello to Python Help!

Martin Fjellhøy
Martin Fjellhøy
437 Points

Syntax Error

I've just started the python course, and have run into unexpected problems. When I try to do something simple as help(print), I receive this error message in the Console:

-su: syntax error near unexpected token `print'

Yes, there is two different apostrophes there.

Anyone knows why this is happening?

David Bouchare
David Bouchare
9,224 Points

Hey Martin,

Are you using the Treehouse workspace or another console?

Martin Fjellhøy
Martin Fjellhøy
437 Points

Hi David,

I'm using the Treehouse workspace.

David Bouchare
David Bouchare
9,224 Points

OK and you are typing the following in the console:

python

... At the prompt >>> help(print)

?

Martin Fjellhøy
Martin Fjellhøy
437 Points

Ah, I feel like an idiot..

Forgot to run python first, I wrote help(print) directly..

It works now.. Thanks for your help! :)

1 Answer