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 (2015) Python for Beginners Second Quiz

Josh Stone
Josh Stone
2,096 Points

To get help about the r just method in the str class, I'd use help( ).

could someone help with this i watched all the videos and am unable to come up with the answer help is needed

2 Answers

Chris Freeman
MOD
Chris Freeman
Treehouse Moderator 68,423 Points

The answer is str.rjust

Note some reported the quiz had a grading glitch where it was not taking the correct answer.

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Josh;

You can use help() to peruse through the docstrings of functions or methods. If you put in no arguments, it will start an interactive help system. If you put in a string, it will search for the string and return the aforementioned docstring content of the module, function, class, method, etc. For example, if you wanted help on just the str class, you could type in help(str) and it would give you a lengthy description of the str class and associated methods. You can chain methods together like str.format to get assistance with the string formatter.

Post back if you are still stuck.

Happy coding,
Ken