Page 117 - TechPluse_C7_Flipbook
P. 117

✶  Integrated and Extensible language: You can easily integrate Python with other languages
                      such as C, C++. You can also write and compile a Python code in C or C++.
                     ✶  Interpreted language: The code you create in Python is executed line by line which makes

                      it easy to correct any errors. On execution, a Python code is immediately converted into 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 a as an integer or string.

                     INSTALLING PYTHON IDLE

                 Python 3.8.5 is automatically installed when you install Ubuntu 20.04. To check Python, open the
                 Terminal and type the following command:

                 $ python3
                 After typing the command when you press the Enter key, the Python prompt (>>>) will appear.













                                                      Checking Python installation
                 You  can  directly  use  the  Python  commands  on  the  Python  prompt  (>>>).  After  typing  the

                 command when you press the Enter key, the Python prompt (>>>) will give you output instantly:












                                                        Using Python commands

                 You can exit from the Python prompt by using the exit( ) command:













                                                         Exiting Python prompt



                                                                                         Introduction to Python      115
   112   113   114   115   116   117   118   119   120   121   122