Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 86 - 2617_JSSPS_C-8
P. 86

    The User Account Control dialog box appears. Click on Yes button. Python will be installed on your
                  computer. Click on the close button when Setup was successful is shown.

                  PROGRAMMING IN PYTHON

                  Python has two basic programming modes—Interactive mode and Script mode.

                  Working in Interactive Mode

                  Interactive Mode is a command line shell that gives immediate result for each command. In Interactive
                  mode, we type one command at a time. Python executes the given command and gives the output. To
                  start Python and work in Interactive Mode, follow these steps:

                                                                                             Click on IDLE (Python   3
                        2   Scroll down the list of programs                                 3.12 64-bit).
                            and click on Python 3.12 folder.

                                   1
                                       Click on Start button.

                  The main IDLE window appears. IDLE stands for Integrated Development and Learning Environment.
                  It is a code editor that helps you write and execute Python programs in the editor itself.

                  Components of Python IDLE Window

                  There are two components of the Python IDLE window: Menu Bar and Prompt.

                       Menu Bar: The Menu Bar of the Python IDLE window is similar to the Menu Bar of other software
                     applications. It has various menus such as File, Edit, Shell, Debug, Options, Window, and Help.
                       Prompt: A prompt is represented by the symbol (three greater than >>>), which indicates that the
                     Python interpreter is ready to accept commands. It allows the user to enter commands directly into
                     Python and get an output instantly by pressing the Enter key in the next line in Prompt itself.

                                                                                                               Menu
                                                                                                                bar

                          Prompt

                     84     Premium Edition-VIII

| 81 82 83 84 85 86 87 88 89 90 91 |