Saturday 14 January 2012

PYTHON

You have probably used computer to do all sorts of useful and interesting things.in each application the compurter responds in different ways to your input ,from the keyboard,mouse or a file. still the underlying operations are determined by the design of the program  you are given.

low-level and  high-level computer operations-
 First let us place Python programming in the context of the computer hardware. At the most fundamental level in the computer there are instructions built into the hardware. These are very simple instructions, peculiar to the hardware of your particular type of computer. The instructions are designed to be simple for the hardware to execute, not for humans to follow. 
The earliest programming was done with such instructions. If was difficult and error-prone. A major
advance was the development of higher-level languages and translators for them. Higher-level languages
allow computer programmers to write instructions in a format that is easier for humans to understand. For
example
z = x+y
is an instruction in many high-level languages that means something like:
(1) Access the value stored at a location labeled x
(2) Calculate the sum of this value and the value stored at a location labeled y
(3) Store the result in a location labeled z.
No computer understands the high-level instruction directly; it is not in machine language. A special program
must first translate instructions like this one into machine language. This one high-level instruction might be
translated into a sequence of three machine language instructions corresponding to the three step description
above:
0000010010000001
0000000010000010
0000010110000011
Obviously high-level languages were a great advance in clarity!
If you follow a broad introduction to computing, you will learn more about the layers that connect
low-level digital computer circuits to high-level languages.

Why Python.-
There are many high-level languages.Python is one of the easiest languages to learn and use, while at the same time being very powerful:
       It is used by many of the most highly productive professional programmers. A few of the places that use
Python extensively are Google, the New York Stock Exchange, Industrial Light and Magic, .... Also Python
is a free language! If you have your own computer, you can download it from the Internet....

Obtaining Python for Your Computer. -
If you are not sure whether your computer already
has Python, it a try. If it works, you are all set.
If you do need a copy of Python, go to the Downloads page linked to http://www.python.org. Be
careful to choose the version for your operating system and hardware. Chosse a stable version, 3.1 or later.
Do not choose a version 2.X, which is incompatible.

Windows- You just need to execute the installer, and interact enough to agree to all the default choices.
Python works in Windows as well as on Apples and in the free operating system Linux.
 
OS X -Double-click on the installer. Find and run the MacPython.mpkg that is inside. Follow the
defaults for installation.
 
Linux- Python is generally installed, though Idle is not always installed. Look for something like ’idlepython’
(the name in the Ubuntu distribution).

In MY next post i will show you some tutorials pf, hope u like the info about python--pls comment

No comments:

Post a Comment