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

what is the method center

i was doing python basics and the quiz asked me about the method center in relation to str and i was a tad confused by what this meant

1 Answer

Boris Ivan Barreto
Boris Ivan Barreto
6,838 Points

Hi Miranda,

To get help on any method that belong to str, you should use: help(str.menthod_name), so in this particular case it should be:

help(str.center)