Python Language Tutorial

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.

Python Language Tutorial:

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

Windows

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:

C:\Python27;C:\Python27\Lib\site-packages\;C:\Python27\Scripts\;

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.

 


RELATED PRODUCTS
  • Learn about how electronic circuits operate and gain valuable basic electronic skills.
  • The Complete FroKnowsPhoto 6-HourGuide to DSLR Video.
  • Learn to draw a realistic pencil portrait in just a week quickly and easily in 7 days.
  • Get everything you need to take your landscape photography to the next level.
  • How to render cars in photoshop fast and easy in less than 60 minutes.
  • Black diamond trader 2 a manual trading system with semi automation works in any market.
  • Get a guided tour through the concepts of augmented reality.
  • Rosalind's Affiliate tutorial makes more millionaire Super Affiliates
  • The software to plan a trip, survey the terrain , see maps and transfer data to the GPS.
  • Clickbank Ads
     

    Leave a Reply