Python For Kids For Dummies
Book image
Explore Book Buy On Amazon

Once you become exposed to programming in Python, you'll discover that there are endless potential things you can do with it. If you want more information, you should check out

  • Python's online documentation

  • Python's introspection features

  • Professor Internet

  • Source code

Python's online documentation

The Python documentation pages are available at https://docs.python.org/2.7/. The most helpful sections are listed here:

In the left sidebar of the documentation page is a quick search field; you can see it in Figure 1. Type your question there and Python will search the documentation for you. It works better if you know the Python keyword, module, or error that you're interested in.

<b>Figure 1</b><b>:</b> Python's online documentation can help.
Figure 1: Python's online documentation can help.

The documentation shows the feature you looked for and a code template for how to use the feature. These docs have a lot of information, but they assume you know how programmers write documentation. This often makes them hard to understand.

Reading the Python documentation is a skill that you have to master if you want to become a Python master. At the moment, though, don't worry that it seems like it's written in a foreign language. Just work through it slowly. As you read more of it, you'll be able to get more information from it. Soon, docs you couldn't understand at all will become mind-numbingly boring. Then you'll know you're making progress!

Python's introspection features

The second form of help is Python's introspection features. Introspection means that the program can tell you about itself. Introspection has a lot of different parts. You've already met one of them — the help feature. To understand the others you need to know more about Python, so I introduce the rest as you work your way through the book.

Professor Internet

"Professor Internet" is the third form of help. When you search the Internet, make sure you include Python as one of your search terms, followed by the thing you're wondering about. If you know that it's part of or related to something else, then include that other thing as a search term as well. For example, don't search for print, because that's too broad. Search instead for python print. (Capitalization won't matter.).

You use a different search strategy online from what you need for the interactive help.

If ads are in your results, skip them.

Source code

Source code is the final form of help. Keep in mind that Python is an interpreted language. This means that what you read is what the computer executes. As a result, if you want to know how some third-party module does something (the Python core isn't written in Python, so that won't help), you can literally look at it and see exactly how it did it. You won't understand it at first, but no matter. Dive in. It starts making sense after a while.

About This Article

This article is from the book:

About the book author:

Brendan Scott is a dad who loves Python and wants kids to get some of its magic too. He started pythonforkids.brendanscott.com to help teach his oldest child to code. He maintains it to help other young people learn Python.

This article can be found in the category: