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 Hotline

Python basics

Am trying to excute help(str), some hint anyone?

2 Answers

Hi Tal

you need to specify what method of the string class you want help on, so say for example you want to know more about the center method of the string class you would type

help(str.center)
Kenneth Love
Kenneth Love
Treehouse Guest Teacher

help(str) is perfectly valid, though.

Thanks for clearing that for me

thats true. my explanation was more in relation to the quiz assuming he was typing in help(str) instead of help(str.center). ohh well any hoo got there in the end.

Kenneth Love
STAFF
Kenneth Love
Treehouse Guest Teacher

What problem are you having with help(str)?

Solved the problem , i guess i misunderstood the question , my bad.