Page 130 - TP_Prime_v2.2_Class_6
P. 130

•  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: Python can integrate with C and C++ to extend its
                    capabilities, especially for performance-critical tasks. Extensions are written in these
                    languages, compiled into shared libraries, and imported into Python to boost speed in

                    intensive operations.
           Prime (Ver. 2.2)-VI  it easy to correct any errors. On execution, a Python code is immediately converted into
                  •  Interpreted language: The code you create in Python is executed line by line which makes


                    an intermediate form.  This is known as byte code. The byte code makes it easier to
                    execute or run the code in future.

                  •  Dynamically Typed language: Python is a dynamically typed language. This means that
                    you do not need to declare the type of variables in advance. For example, if you write a

                    = 15, you do not need to specify the variable as an integer or string.
          128
                    Installing Python


                  Python is a free and easy-to-use computer language. Anyone can download Python software
                  from https://www.python.org/downloads/.

                  Once the software is downloaded, double-click on the downloaded file and click on the Run
                  button. The process will automatically install Python. Each step is shown to the user and

                  the user just has to click on the Next button. Once the process is completed, click on the
                  Finish button.
                  Python  IDLE  looks  as  below. IDLE  stands for Integrated  Development  and Learning

                  Environment. It is a code editor which helps you to write and execute Python programs in
                  the editor itself.













                                                              Python IDLE


                    Modes of Python IDLE


                  Python IDLE used in two modes, which are Interactive and Script. Let's learn about these
                  in detail.
   125   126   127   128   129   130   131   132   133   134   135