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
Osman Farah
1,329 PointsBasic python
I'm stuck Rjust. I did dir function, but won't take it?
Kyle Hahnel
Python Web Development Techdegree Student 5,670 PointsWe need some more information so we can help.
Osman Farah
1,329 PointsThis is the question. In the video, we looked up the documentation for the rjust method on the str class by using help(str.rjust). To get help for the method center that also belongs to the str class, we would? This is my answer I answered dir() function, Attribute, but isn't correct answer. The videos mentioned dir and help function Only.
1 Answer
Chris Freeman
68,469 PointsAs you say: "looked up the documentation for the rjust method on the str class by using help(str.rjust)".
This question is only a slight variant on that, by asking "To get help for the method center that also belongs to the str class, we would?"
The answer is to use what was done before, but replace rjust with the method you want help on as in help(str.center)
kajari banerjee
Courses Plus Student 75 PointsIsn't Center the method like rjust? I thought the answer would be help (str.center)
Chris Freeman
68,469 PointsChris Freeman
68,469 PointsWhich challenge are you working on?