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!

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

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
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.

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.