"Kotlin for Java Developers" was retired on July 14, 2025.

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 Interpreter returns error for help(print)

Going back thru a few of these videos and I noticed when I try the following:

>>>help(print) 
File "<stdin>", line 1 
 help(print) 

SyntaxError:  invalid syntax 

This is with Python 3.5 under CentOS 6. I'm not sure why this is happening, except what you type changes per version of Python?

[MOD: Added formatting -cf]

2 Answers

Kenneth Love
STAFF
Kenneth Love
Treehouse Guest Teacher

Hmm, I can't replicate this.

Can you get help on anything else?

Wrong version of Python, its 2.6.6. Python 3.5 works ok.

I also tried help(int) and it worked ok..