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 trialJill Meyerson
544 PointsWe are told in the videos to review the "docs" for more information. Where can I find these "docs"?
The "docs" are mentioned in the Splitting and Joining video.
4 Answers
Jared Truscott
2,351 PointsOne quick thing to add here concerning the split function discussed in the video that you're referencing is that the code should look like
help(str.split)
and not
help(split)
As the second example will throw an error. This was a little confusing to me at the start, so I thought it was worth sharing.
Jeff Morrison
5,917 PointsYou have two options:
You can use the Python docs
or...
In the Python shell, use the help command. To get help on a specific function or class, you can type python help(function)
For example:
I imported the random module, but I don't understand the choice function. So on the python command line I would type:
>>>import random
>>>help(random.choice)
Konrad Pilch
2,435 PointsWhere can you find it? xd in google.
Here you go lol i hope that what you need.
Alexander Davison
65,469 PointsThere are many documentations for Python, but these are my favorites (you can also use the help() function):
Teresa Pereira
704 PointsTeresa Pereira
704 PointsThank you so much, Jared!