Friday, 1 January 2016

Python installation & Executing simple Program


How to download python:


Step 2: After download you will get executable file

             

Step 3: double click on executable file. After clicking you will get popup


               
Step 5: click on Run you will get another popup









Step: 7    Verify python installed or not: Go to system menu & type PYTHON





Step 8: Open command Prompt & type python






Step 8: After type python- sometimes u will get “Internal or external files” error

To solve – go to path before you have remember the path to installed





Step 10: Set Environment variables of python (copied path mention in Path variable & click ok)



Step 11: Close the command prompt & open new fresh command prompt & type python





Where we can write Python program
1Notepad
2Notepad++
3. Eclipse
4. Python shell prompt
Step 1: To write program in NOTEPAD & executing in command prompt
     1.1: Open notepad -write python sample print program




Step 1.2: save as to (demo.py)




1.3: Go to folder saves file will be display in python symbol





Step 3: Executing notepad file in command prompt
3.1:  copy the save file path – open command prompt




3.2: mention copied path & file name as (d.py) and enter




Step 2: Writing program & execution in python shell command
2.1: Type python in system menu – select IDLE




2.2: Shell command will open and type your program and execute