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

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

I gave answer as help(str.center). But system throws error. Can someone help me?

3 Answers

Josh Keenan
Josh Keenan
19,652 Points

copy this exact answer:

help(str.center)

Thank you. Its works. :)

Josh Keenan
Josh Keenan
19,652 Points

That is the correct answer....redo it then post to this thread again if it doesn't pass

I tried many times. But it failed

Josh Keenan
Josh Keenan
19,652 Points

Happy to help, were you using a '.' character after the 'help(str.center)'?

oh got it :(