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 trialJames Guido
84 PointsHaving trouble with one question in quick quiz
To get help for the method center that also belongs to the str class, we would use...........
3 Answers
Greg Kaleka
39,021 PointsHi James,
That quiz question gives you another example of calling the help function. You can use it to figure out how to answer the quiz.
In the example, you're getting help for the string method rjust like this:
help(string.rjust)
Now how do you think you would call for help for the string method center (hint: it will look very similar to the call for help above)?
Jose Tenorio
Courses Plus Student 75 PointsTo get help for the method center that also belongs to the str class, we would use :[
Jose Tenorio
Courses Plus Student 75 Pointsok it worked
James Guido
84 PointsJames Guido
84 Pointshelp(string.center) ?
Greg Kaleka
39,021 PointsGreg Kaleka
39,021 PointsDing ding ding! That's the correct answer. Now go type that into the quiz :)