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

Kichona Shinko
PLUS
Kichona Shinko
Courses Plus Student 65 Points

How do you look up the documentation about the str class's upper method in Python?

What is the help() command to look up the documentation about the str class's upper method in Python?

2 Answers

Chris Freeman
MOD
Chris Freeman
Treehouse Moderator 68,454 Points

In an interactive Python session:

# to get help use
help()
# to get help on the type str use
help(str)
# to get help on the method upper of the type str use
help(str.upper)

This is the correct answer. (STR.upper).