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 trialWendy Chang
351 PointsI simply do not get this question: To look up the documentation about the str class's upper method, what help can I use?
simply do not get this question: To look up the documentation about the str class's upper method, what help can I use?
1 Answer
Anibal Marquina
9,523 PointsHi Wendy,
String, integers, float, list, set, dictionaries are classes in python...
If you want your python shell to show the help for one of those you call the help() method on that class: help(str)
Strings (str) have several methods you can use to perform different actions. One of those method is the upper() method.
To show the help of upper() of the str class: help(str.upper)
Type print(dir(str)) to see all available methods of the str class