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 trialNick Schumacher
2,729 PointsI 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
155,055 PointsQ: 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
2,729 PointsNick Schumacher
2,729 Pointsya I don't think that he ever went over that.