Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 80 - 2606_PlugGPT_C6_Flipbook
P. 80

    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
                                                                              (Python 3.12
                      Let’s see the main components of the IDLE Shell         64-bit) option.
                      window:

                                                                                                  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 allow users to minimize, resize or 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. This allows for quick testing and debugging of code snippets. In the

                      IDLE Shell window, the >>> sign appears. Here, we can type our code and get output by pressing
                      the Enter key.

                       78   Premium Edition-VI

| 75 76 77 78 79 80 81 82 83 84 85 |