Page 36 - Code & Click - 7
P. 36

4                       Variables & Operators in Python







                 Pre-Processing
                 Pre-Processing
                       • Starting Python                           • Components of Python IDLE Window
                       • Working with Python IDLE                  • Data Types in Python
                       • Declaring and Initialising a Variable     • Operators in Python
                       • Precedence of Operators


            Python is an interpreted, object-oriented, high-level programming language for general-purpose
            programming.  It  was  developed  by  Guido  van  Rossum.  Python’s  simple,  easy-to-learn  syntax
            emphasises readability and reduces the cost of creation and maintenance of programs.
            The standard development environment for Python is called IDLE (Integrated Development and
            Learning Environment). It lets a user write, debug, and execute code from the same interface.

            STARTING PYTHON
            To start Python IDLE:
              1.  Click the Start button.
                  The Start menu opens.                                       2
              2.  In the list of programs, under Python 3.11, click IDLE
                  (Python 3.11 64-bit).
                  Python starts and its IDLE window opens.                    1

            COMPONENTS OF PYTHON IDLE WINDOW
            Let us learn about the components of the Python IDLE window.

                          Title Bar
                          Menu Bar






                           Python
                           Interpreter




                                                                                             Status Bar

                 Component                                           Description

             Title Bar              Displays the version of the Python IDLE and contains the control buttons to
                                    minimise, maximise, and close the window.

             Menu Bar               Displays menus that contain commands related to a specific set of activities.


            34
   31   32   33   34   35   36   37   38   39   40   41