Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 139 - 2612 Digimind C6
P. 139

    Click on the
                                    Download Python
                                      3.12.6 button.

                     After downloading the Python setup, run it to install.

                     Once Python is installed, we will use IDLE to write and run Python programs. IDLE stands for
                     Integrated Development Learning Environment and it is the most popular graphics-based

                     development environment that allows us to type, edit, run and debug the Python programs.

                     STARTING IDLE PYTHON
                                                                                 1  Type idle in
                     To open IDLE, follow the given steps:                      search box.

                     COMPONENTS OF THE IDLE SHELL WINDOW                      2  Click on IDLE

                     Let’s see the main components of the IDLE Shell         (Python 3.12
                     window:                                                 64-bit) option.

                                                                                        Control buttons
                      Menu bar

                                  Command Prompt

                       Menu bar: It has various menus such as File, Edit, Shell.
                        Command Prompt: It allows the user to enter commands directly into Python and get an output
                       instantly by pressing the Enter key.

                       Control buttons: These buttons are used to resize and close the window.

                               PROGRAMMING MODES IN PYTHON

                     Python provides two basic programming modes: Interactive Mode and Script Mode.

                     INTERACTIVE MODE (IDLE SHELL WINDOW)

                     The IDLE Shell window is an interactive window where we can type a Python code and view the
                     output in the same window. In the IDLE Shell window, the >>> sign appears. Here, we can type our
                     code and get output by pressing the Enter key.

                                                                                                 Introduction to Python  137

| 134 135 136 137 138 139 140 141 142 143 144 |