Thursday, January 8, 2009

How To Draw A Diagram Of A Car Accident Report

Tutorial III: Variables in python

, have decided to vacation to play a little python and I liked it, which is why I write here some of what I learned.

Python is a scripting language developed by Guido van Rossum . With python program can using linear programming, structured and object-oriented.

It has Python interpreters on multiple platforms: Windows (ActivePython 2.5), Linux, Mac etc. instructions can execute Python from the command line or by creating files with extension *. py.

ActivePython is available for download from here:

http://downloads.activestate.com/ActivePython/windows/2.6/ActivePython-2.6.1.1-win32-x86.msi

When installed Python, you should check it out properly. To so do the following:

·

Open your console (run>> cmd)

·

Write python

Running the command will return the version 2.5.2.2 ActivePython here

will see a simple hello world example.

In the console write just opened

Print 'Hello World'

and press enter

With that line is printed on the screen the string is within single quotes, in this case Hello World.

Another way

message = 'Hello World'


Print post



Results

If you do not want to do from the console of Windows will do with active ActivePython

To open it just run PythonWin Editor who is in the directory located

ActivePython

in all programs

0 comments:

Post a Comment