Python 1.6 - Points to remember

 

Points to remember

·         Programs are written to get the machine working.

·         A programming language provides an interface to easily write programs.

·         The code written by a programmer in a high level language is called source code.

·         Object code – The code, after compiling C/C++ source code.

·         Byte code – The code, after compiling Python source code.

·         Machine code – The code which is directly executed by a processor.

·         Translator converts the source code into machine code.

·         Compiler executes the entire program in one go whereas Interpreter executes only one statement at a time.

·         Assembler converts the code written in Assembly language.   

·         Python was developed by Guido Van Rossum in the year 1991.

·         PVM (Python virtual machine) – It is a program that translates the Byte code into machine code. Since Interpreter in PVM does the main job, hence PVM is called an Interpreter.

·         The name Python has been picked from a comedy show namely “Monty python’s flying circus”.

·         Processor understands only machine code so our program is converted into machine code by a language translator.

·         There are two types of programming languages – Low level and high level. Machine and assembly languages are called low level languages. C, C++, Java, Python, Fortran etc. are called high level languages.

·         The compiler is much faster than the Interpreter.

·         Python is a compiled interpreted language.

·         CPython is the standard implementation of Python written in C language.

·         PyPy implementation has JIT compiler and Interpreter in its PVM While CPython has only Interpreter in its PVM.

·         Compilation process is hidden from the programmer in Python.

·         Python is a high level language that contains features of functional programming language like C and object oriented programming language like Java.

·         A Python program is first compiled into Byte code by Python compiler. This byte code is given to python Virtual Machine (PVM) which converts the Byte code to machine code so that the processor could execute it and display the result.

·         Python is a dynamically typed language which means we need not declare anything.


Comments

Popular posts from this blog

Python 4.4 - Points to remember

Python 3.6 - Points to remember

Python 3.3 - Datatypes in Python