What is python ?
The official definition of python programming language as given by python.org is as follows.
Python is an interpreted, object-oriented, high-level programming language with dynamic semantics. Its high-level built-in data structures, combined with dynamic typing and dynamic binding, make it very attractive for Rapid Application Development.
Setting up python
This article will make you familiar with python and show you how to set up python on your computer.
Most operating systems other than Windows already have Python installed by default. To check that Python is installed, open a command line (typically by running the “Terminal” program), and type python
If you have python installed you will get an output like this ( The following is the output on my computer, which has ubuntu installed )
Python 2.7.3 (default, Aug 1 2012, 05:16:07) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>>
If you get a response like, python command not recognized. Then you will have to install python.
2. Installing python on your machine
1. Visit the official Python download page (http://python.org/download/ ) and grab the Windows installer. Choose the 32-bit version or a 64-bit version depending upon your requirement.
2. Run the installer and accept all the default settings, including the “C:\Python27″ directory it creates.
3. Next, set the system’s PATH variable to include directories that include Python components and packages we’ll add later. To do this:
Right-click Computer and select Properties.
In the dialog box, select Advanced System Settings.
In the next dialog, select Environment Variables.
In the User Variables section, edit the PATH statement to include this:
And you’re done.Python is now installed on your PC. Open up the python interpreter by opening the command line and typing python.
you should see an output like this.
Python 2.7.3 (default, Apr 10 2012, 14:24) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or license for more information. >>>
That’s it, you are all set to dive into python now. In the following posts you will learn how to write your first python program.