But Why Python ???
Of course, you have to start with something 😛
On a serious note I think Python is easy to understand(although some may not quite agree with me) when first learning how to program.
It is a great starter language that is also quite powerful when you get familiar with it. Used for many web applications and even some games.
Before starting few basic questions:
Q. What is a Program and what’s it’s use ?
A. A program is a list of step by step instructions telling the computer how to do something.
Q. How does the computer understand the program written by the user ?
A. Computers understand binary/machine language: 01011101.
In order to make a computer understand higher-level languages you need to use a compiler or interpreter.
Q. What do you mean by Higher Level Language [HLL] ?
A. A programming language such as Python enables a programmer to write programs that are more or less independent of a particular type of computer. Such languages are considered high-level because they are closer to human languages and further from machine languages.
The main advantage of high-level languages over low-level languages[assembly language] is that they are easier to read, write, and maintain. Ultimately, programs written in a high-level language must be translated into machine language by a compiler or interpreter.
Q. What do you mean by a compiler or interpreter ?
A. A Compiler and Interpreter both carry out the same purpose – convert a high level language (like Python) instructions into the binary form which is understandable by computer hardware.
They are the software used to execute the high level programs and codes to perform various tasks. Specific compilers/interpreters are designed for different high level languages
However compiler and interpreter differ in the way the convert high level language into machine language.
Q. So what exactly is the difference between a compiler and interpreter ?
A. – The interpreter takes one statement then translates it and executes it and then takes another statement. While the compiler translates the entire program in one go and then executes it.
– Compiler generates the error report after the translation of the entire page while an interpreter will stop the translation after it gets the first error.
– Compiler takes a larger amount of time in analyzing and processing the high level language code comparatively interpreter takes lesser time in the same process.
– Besides the processing and analyzing time the overall execution time of a code is faster for compiler relative to the interpreter.
Reference: http://www.youtube.com/watch?v=kmQUB-5cEgM