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

Denise Chiang
6,167 PointsHaving trouble with this question: To get help for the method center that belongs to the str class, I'd use ________.
Python Help
4 Answers

Ricky Catron
13,023 PointsYou would call the help function with str.center as the argument.
help(str.center)
the "." is how you access the atrributes and methods of a class.

irene devlin
330 Pointstried this does not work in the answer

Kenneth Love
Treehouse Guest TeacherIt definitely does work in the quiz. I just tested it again to be certain.

nathon Reed
2,596 Pointsthank you first i was just trying r not the full command thank you for your quick answer.

Kenneth Love
Treehouse Guest TeacherYou can see all of the methods that strings have by using dir(str)
like we did in the video. Looking through that list, the center
method looks like an good candidate, and, as Ricky Catron said, you can check what it actually does with help(str.center)
.

Sagar Koradia
4,456 PointsKenneth Love : help(str.center) is not working in the above question.
Que: To get help about the rjust method in the str class, I'd use help( ___________ ).
Answer: that i need to write is str.center in the blank.
but it is not working. Kindly guide me.

nathon Reed
2,596 PointsI am not sure what I am doing wrong here. For the answer to the question I am copy and pasting str.center and tried typing it in and I am not getting the right answer. what am i doing wrong? Thank you Nate

Kenneth Love
Treehouse Guest Teachernathon Reed be sure to read the question. It's not asking about str.center
.