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 help for the method string

Cannot answer this question nor find answer in video:

To get help for the method center that belongs to the str class, I'd use _____

2 Answers

David Bouchare
David Bouchare
9,224 Points

Hi Joni,

I actually had to look at the video again, but the answer really is in the video (more or less). You want to call help() on str.center. Can you try it and see if it works?

Kenneth Love
Kenneth Love
Treehouse Guest Teacher

I never promised you wouldn't have to work for the answers ;)

Tony McCabe
Tony McCabe
4,889 Points

Use the python interpreter enter 3.4 IDE GUI and type help(str.center). Walla, it worked for me