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

Python Python Basics (Retired) Say Hello to Python Help Hotline

James Guido
James Guido
84 Points

Having 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
Greg Kaleka
39,021 Points

Hi 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)?

James Guido
James Guido
84 Points

help(string.center) ?

Greg Kaleka
Greg Kaleka
39,021 Points

Ding ding ding! That's the correct answer. Now go type that into the quiz :)

To get help for the method center that also belongs to the str class, we would use :[

ok it worked