Monday, April 25, 2011

first tutorial

Firsts things first:


Welcome to my new blog. This blog is designed to teach others about The python programming language. To download python simply go to this website:

http://python.org/download/

and download it for whatever operating system you have.

once downloaded click on the application IDLE and you will find a window labeled python shell. This window is is called interactive mode and is used for single commands. To make a script go click on File > New window and you will come up with a window that should look something like this:
Now that you have got to the scripting part of the python IDLE we can begin programming.
type:

print("Hello world")

Save this as a .py file and click run > run module and it will open the application in the python interactive mode. I use this because I have an apple computer and it makes it much easier but if you would like to open it in a terminal window you can find the python folder and open the application python launcher. Drag the file onto the python launcher and it will run in a terminal window or a command prompt window. 

I will make another tutorial on making a stand alone application sometime in the future.


Comments appreciated:

If I do something wrong please send me an email at knowpython@gmail.com