Page 124 - TP_Pro_V5.1_Class6
P. 124

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.




                  122   Pro (V5.1)-VI
   119   120   121   122   123   124   125   126   127   128   129