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 trialJohn Paul Masters
1,722 PointsI don't understand
I have tried typing str and str.center, and I have seen the review video twicw, and I can't seem to get it, what am I doing wrong?
1 Answer
Sharla Kew
15,356 PointsAre you stuck on the "What to pass into help() to get info about str's upper method" question?
it's help(str.upper)
John Paul Masters
1,722 PointsJohn Paul Masters
1,722 PointsThank you so much
Sharla Kew
15,356 PointsSharla Kew
15,356 PointsIt feels kind of icky to just give the answer, so I'm going to add something.
The reason it's str.upper and not str.upper() is that once you slap the () on the end of a function you're saying DO IT NOW!, and you don't want it to execute str.upper, you just want to give its name to the help function.