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 Data Types Splitting and Joining

Jill Meyerson
Jill Meyerson
544 Points

We 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
Jared Truscott
2,351 Points

One 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.

Teresa Pereira
Teresa Pereira
704 Points

Thank you so much, Jared!

Jeff Morrison
Jeff Morrison
5,917 Points

You 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
Konrad Pilch
2,435 Points

Where can you find it? xd in google.

Here you go lol i hope that what you need.

There are many documentations for Python, but these are my favorites (you can also use the help() function):