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 Python Basics (Retired) Say Hello to Python Help Hotline

sreeharsha thanneeru
PLUS
sreeharsha thanneeru
Courses Plus Student 1,297 Points

Unable to get the answer right for this

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

I think the answer for this question is help(str) or dir(str).

Both are coming up as wrong answers. What would the correct answer be ?

4 Answers

Kenneth Love
STAFF
Kenneth Love
Treehouse Guest Teacher

In the video, I think I looked up the help for the rjust() method of the str class. Obviously you don't want to look up that as the answer to the question, but it should point you in the right way.

I'll bold somethings for you.

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

so you are looking for the method "center" that belongs to the "str" class... I'm giving you a hint that might help..if you still can't get the answer then let us know to help.

sreeharsha thanneeru
PLUS
sreeharsha thanneeru
Courses Plus Student 1,297 Points

Face Palm !!! I was a lil sleepy when I did it the pther day .. I couldnt catch the word Center, and was reading method center as one ? and was scratching ....

Now that I know you reply super awesomely for the questions, I will try to apply more brains and raise more valid ones !!!

Cheers !!!

Just to add on another place where someone has mentioned before. when you do type help(str.center) on the android app a space appears between help and (str.center) making it invalid. So basically delete the space.