Thursday, 15 October 2015

pySHELL (doing) and IDLE Editor (making)

#When you click on the Python icon and the program launches, you are in the pyShell. So as to say it you are working Live.

#But if you want to create a program you will need a Code Editor. I use IDLE. IDLE  is like a sheet of paper where you will type your scripts.

#So,

#1.
·Open Python
·File > Save
·NAME: 01 HelloWorld.py
·Save in your folder, in a subfolder called Python Scripts
·Close Python

#2.
·Go to your folder. Find 01 HelloWorld.py.
Is it there?
·This is how I open it:
Right-Click on 01.HelloWorld.py > Edit with IDLE
This is where you are going to create your scripts.
·You are ready to programme.

#3.
·Type
print ('Hello World')
·Click F5
·Say yes to Save
·The PythonShell opens. The command written on IDLE has been executed in the SHELL

#4 Reposition your two windows like in the photo. IDLE on the left, Python Shell on the right.

#5.
This is your first script in Python