Page 105 - Touchpad_Plus_V3.2_Class 6
P. 105

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

                     ✶ Interpreted language: The code you create in Python is executed line by line which makes
                    debugging easier. On execution, a Python code is immediately converted into an intermediate
                    called 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 a string.

                     INSTALLING PYTHON IDLE

                 Python 3.12.3 is automatically installed when you install Ubuntu 24.8. 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      103
   100   101   102   103   104   105   106   107   108   109   110