Here's how you do it from scratch / layman (my type) while learning python:
If you have a 32-bit Win7 system without an environment variable manually installed after installation (basically nothing was done after installing it) python 2.7 or any version lower than python 3 from the site, follow these steps:
1) Open a command prompt and enter (in the exact case):
cd\
until you return to the "C: \" directory (the root / base directory where your python is installed).
2) Then enter:
cd Python27
Since my base directory or drive is drive C, my path is this: yours may be different so you enter the path of the Python27 folder (or 26 or the name of your python folder) where you installed Python2.7 (or any other version).
3) Then enter:
cd Lib
You have just entered the library folder where the pydoc.py file is present by default from the Internet by default (for me it was).
4) Then just enter:
pydoc.py
You will get the required pydoc output, which apparently refers to the βpersonalβ PERL / Linux page or the C / Windows Help page.
5) Then just enter:
pydoc.py raw_input
The name of the required command for which you want to see the documentation.
Now you know how to do this for all the other teams.
source share