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 (Retired) Shopping List Shopping List Project

How search description about method, when I don't know class of it.

Suppose, someone tells you to use for some reason function Append(). But you do: help(append) dir(append)

Can't find anything. Problem is, you don't know to which class it belongs to.

Now what ? How find description about it ?

1 Answer

Kenneth Love
STAFF
Kenneth Love
Treehouse Guest Teacher

If all they information they gave you was "Look for append()", and you had no context to guess the class or module that it comes from, I'd say go to the docs and search there. You'd have a lot to filter through, though.

Most of time, I would imagine you would have context (e.g. "I'm having a problem adding things to a list." "Oh? Check out .append()". Now I'd know to look at list.append()) or you could get clarification from the person you're talking to/reading/etc.