Page 136 - Computer Science V2.0 Class 11
P. 136

5.6 Exiting Python IDE

              Once you are done with your job, you may follow any of the following methods to exit IDLE:
              ●  Type quit() or exit() commands on the prompt in the Python Shell. IDLE will respond as shown in Fig 5.10. Just click
                 on the OK button and IDLE session will come to an end.












                                                               Fig 5.10
              ●  Press Alt+F4 keys to close the IDLE window.


                      Answer in one word:
                      1.  Python mode to save the instructions.
                      2.  Shortcut key for running a program.
                      3.  The symbol for Python Prompt.





                   Let's Summarise


                Ø   A program is a sequence of instructions to perform a particular task.

                Ø   A program written in any high-level programming language is called source code.
                Ø   A compiler transforms the source code into equivalent code in the computer's machine language. The machine
                    language code so generated is called object code. Thus, in the case of a compiled language, the entire source
                    program (source code) is transformed into machine language object code in one go.

                Ø   In the case of an interpreted language, the source code is transformed into the object code, statement by
                    statement.
                Ø   Python is a simple, versatile, and powerful programming language.
                Ø   Python is an open-source language, available free of charge.
                Ø   Python is an interpreted, object-oriented language.

                Ø   Python is platform-independent, and Python code is portable.
                Ø   Python has a vast library of built-in functions.
                Ø   Python is a dynamic and case-sensitive language.
                Ø   Python supports creating GUI (Graphical User Interface) applications for desktop, web, and mobile devices.
                Ø   Using the Shell window and the Editor window, IDLE enables working with Python in the Interactive Shell
                    mode and the Script Mode, respectively.

                Ø   The interactive Python interpreter is also known as the Python Shell.
                Ø   To be able to save Python code for future use, we use the Python Editor. This mode of working in Python is
                    called the script mode.
                Ø   The Python programs, also known as Python scripts are saved in files with the extension .py.



               122   Touchpad Computer Science (Ver. 2.0)-XI
   131   132   133   134   135   136   137   138   139   140   141