Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 110 - 2611_SmartGPT Pro V(5.0) C-6
P. 110

    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.

                      108   Computer Science (V5.0)-VI

| 105 106 107 108 109 110 111 112 113 114 115 |