Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Please remove # tag. Just save the above program with an extension .py and run the program as below.

Step 1 Go to Command Prompt. type- Python and hit enter key. it will move you to the Python environment by showing >>> symbol on the command prompt screen.

Step 2 just verify whether your numpy has successfully installed in your PC or not by typing the command;-" import numpy" . If it is showing >>> symbol, then your numpy installation is ok. If not u have to uninstall the numpy and re-install it again.

Step 3 If numpy is correctly installed in your pc, then compile your code with following command:- Python name_of_the_program_file.py and hit enter key

It will compile your code.

This is very simple procedure.