Page 82 - TP-Play_V-2.0_Book-6
P. 82

LANGUAGE TRANSLATOR

            A language translator is a software that converts a high-level language program into a machine
            language. There are three types of language translators.

            Assembler

            An assembler is a program used to translate assembly language into machine language so that
            the computer can understand it. The assembler enables the computer to convert the assembly
            language instructions into machine code, i.e., 0’s and 1’s.

            Compiler

            A compiler is a software that converts the entire source program into machine language before
            executing it. It converts the entire high-level language program into machine language at once.
            It displays the errors for the whole program together.

            Interpreter

            An interpreter is also a separate program that converts the entire source program into machine
            language before executing it. It translates and executes one statement at a time. It displays the

            errors one line at a time and it goes to the next line only after the error is corrected.

                PYTHON

            Python is a popular high-level programming language. It is a powerful language used for general-
            purpose  programming.  Python  was developed  by Guido  van Rossum. He started  applying
            Python in 1989. Python is extensively used to develop:
                games                               Graphical User Interface programs

                websites                            web applications

                FEATURES OF PYTHON

            Following are the features of Python:
                 Easy to Code: It is very easy to write programs in Python as compared to other high-level
               programming languages. This is because the language used to write Python codes is similar

               to the English language.

                 Open-source  Language:  Python  is a  free  and  open-source  programming  language.  An
               open-source language is one which can be easily improved and distributed by anyone. You
               can download Python free of cost and use it on any operating system such as Windows, Mac

               or Linux.

                 Object-oriented: Python has an object-oriented approach. This means that the programs are
               designed using objects and classes that interact with each other.

                 Integrated and Extensible Language: We can easily integrate Python with other languages
               such as C, C++. We can also write and compile a Python code in C or C++.


             82       Play (Ver. 2.0)-VI
   77   78   79   80   81   82   83   84   85   86   87