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 trialstephanie murray
1,557 Pointsquiz question
to get look up documentation about str class's upper method, I'd use help( ) for some reason I'm not understanding what this question is asking because I keep getting it wrong
2 Answers
Steven Parker
231,236 PointsYou need to add the the kind of thing the method applies to.
As Jonathan pointed out, the term you use to look it up should include the prefix for the type of thing the method is for.
Travis Bailey
13,675 PointsSo there are two functions that really helped me when starting Python. They are dir() and help(). You can click the links to check out the official docs, but my mind remembers them as such:
1) DIR gives me the attributes of what I pass it. So if I want to know what I can do with something, I run DIR to get the actual things I can call against it.
2) HELP gives me an explanation of what I pass into it...most of the time. For the built-in Python code, you can expect something similar to what you'd find in the Python docs. For other people's Python code, it'll give you whatever they wrote in the function's docstring.
Full disclaimer, I'm very much still a student. However, hope this helps!
Jonathan Borteij
866 PointsJonathan Borteij
866 Pointshelp(str.upper)