Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 108 - 2632_CodeMind
P. 108

    2  Scroll down and
                          click on Python
                                                                                               3  Click on IDLE
                          3.12 folder.
                                                                                               (Python 3.12 64-bit).

                               1  Click on the
                               Start button.

                     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.

                     Components of Python IDLE Window

                     There are two components of Python IDLE window:
                        •  Menu Bar: The Menu Bar of Python IDLE window is similar to the Menu Bar of other programs.
                        It has various menus such as File, Edit, Shell, Debug, Options, Window and Help.
                        •  Prompt: You will  see  a  blinking  cursor  after  the  symbol  (>>>), which  indicates  the  Python
                        interpreter is ready to accept commands.  The Prompt allows the user to enter commands directly
                        into Python and get an output instantly by pressing the Enter key.

                               Menu
                                bar

                              Prompt

                     Type the commands at the prompt, and you will immediately get the results. Simply, type 3 + 3 and
                     press the Enter key. The result 6 appears on the screen. Try more values and see what happens.

                     Script Mode

                     The Interactive Mode does not save the commands entered by the user in the form of a program. The
                     Script Mode saves the commands entered by the user in the form of a program. To understand the
                     working of Script Mode, we have divided the process into four parts. Let us discuss these.

                                                                                          Introduction to Python  107

| 103 104 105 106 107 108 109 110 111 112 113 |