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 trialMark Ilori
Courses Plus Student 161 PointsTo look up the documentation about the str class's upper method, I'd use help(str.uppermethod). why is this wrong?
why is this code wrong? when looking up up documentation concerning the str class's center, kevin used the code: help(str.centre) so why is the code: help(str.uppermethod) wrong? this does not make sense
1 Answer
Jennifer Nordell
Treehouse TeacherHi there! I believe you mean Kenneth and I also believe you mean the "center" method.
Here's a partial quote from the video regarding help at around 7:54 of the video:
Methods, functions things like that ... we don't use parenthesis, we just use the name
Kenneth uses help(str.center)
. The name of the method is "center", not "centermethod".
You only need to use the name of the method: help(str.upper)
.
Hope this helps!