Page 114 - PortGPT_V2.1_C6_Flipbook
P. 114

Step 3:   Double-click on the downloaded software. You can either look at
                          the bottom of the screen or locate the software in the Downloads
                          folder of your computer. The Security Warning dialog box appears.
                  Step 4:  Click on Run button. The Python Setup window appears.

                  Step 5:  Select the Add Python 3.8 to PATH checkbox.
                  Step 6:  Click on Install Now button.
                  After a few seconds, Python will be successfully installed on your computer.



                         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:

                  Step 1:   Click on Start button.
                  Step 2:   Scroll down the list of programs and click on Python 3.8 folder.

                  Step 3:  Click on IDLE (Python 3.8 64-bit).




















                                                              Opening Python

                  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.


                  112   Premium Edition-VI
   109   110   111   112   113   114   115   116   117   118   119