Time for action – using the Python help system
Depending on your operating system, you can access the Python shell with special applications, usually a terminal of some sort.
- In such a terminal, type the following command to start a Python shell:
$ python
- You will get a short message with the Python version and other information and the following prompt:
>>>
Type the following in the prompt:
>>> help()
Another message appears and the prompt changes as follows:
help>
- If you type, for instance,
keywords
as the message says, you get a list of keywords. Thetopics
command gives a list of topics. If you type any of the topic names (such as LISTS) in the prompt, you get additional information about the topic. Typingq
quits the information screen. Pressing ...
Get NumPy : Beginner's Guide - Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.