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

Nick Schumacher
Nick Schumacher
2,729 Points

I have no idea what the answer is. It is a very confusing question and not worded very clearly.

I am not familiar with the language at all so the question is just confusing me.

1 Answer

Chase Marchione
Chase Marchione
155,055 Points

Q: What function is used to look up the attributes and methods of a class? A: dir()

Python Documentation Source: https://docs.python.org/3/library/functions.html#dir

Q: To get help for the method center that also belongs to the str class, we would use: A: help(str.center).

Python Documentation Source: https://docs.python.org/3/library/functions.html#help

Nick Schumacher
Nick Schumacher
2,729 Points

ya I don't think that he ever went over that.