Page 85 - modular4.0
P. 85

Chapter Profile

















                        PROGRAMMING IN PYTHON


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

                 Working in Interactive Mode

                 Interactive Mode is a command line  shell which  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.

                 Follow these steps to start Python and work in Interactive Mode:


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



                                    1   Click on
                                   Start button.


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

                 Components of Python Window

                 There are two components of Python IDLE window:
                     Menu Bar: The Menu Bar of Python IDLE window is similar to the Menu Bar of other programs.
                    It has various menus such as File, Edit, Shell, Debug, Options, Window and Help.
                     Prompt: You will see a blinking cursor after the symbol (>>>) in the window. This is known as the
                    Prompt. The Prompt allows the user to enter commands directly into Python and get an output
                    instantly by pressing the Enter key.












                                                                                         Introduction to Programming  83
   80   81   82   83   84   85   86   87   88   89   90