Page 116 - Trackpad_V5_Book 6
P. 116

Click on the
                      Download Python
                        3.9.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 python
            To open IDLE, follow the given steps:                       in search box.


            COMPONENTS OF THE IDLE SHELL WINDOW                      2  Click on IDLE
                                                                    (Python 3.9 64-bit)
            Let’s see the main components of the IDLE Shell         option.
            window:



                   Menu bar                                                                 Control buttons



                               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.



             114  Pro (Ver. 5.0)-VI
   111   112   113   114   115   116   117   118   119   120   121