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 help hotline quiz

OMG i've been trying to finish this quiz for days!!! I need help!

python basics help hotline quiz

1 Answer

Hi Lucas

OK so I don't know which of the questions you're stuck on and I think they vary (slightly) or at least change order.

The first question asked me to use the help function on the center method of str class. This is achieved by calling the help function and passing in the class followed by the method as below:

help(str.center)

The second question asks which function is used to look up attributes and methods of a class. This is achieved by using the dir function as below:

dir(str)

Hope it helps!

OMG thank you so much

No problem, Glad I could help!