Page 83 - TP-Play_V-2.0_Book-6
P. 83

Interpreted Language: The code you create in Python is executed line by line which makes
               it easy to correct any errors. On execution, a Python code is immediately converted into an
               intermediate form. This is known as byte code. The byte code makes it easier to execute or
               run the code in future.

                 Dynamically Typed Language: Python is a dynamically typed language. This means that you
               do not need to declare the type of variables in advance. For example, if you write a = 15, you
               do not need to specify the variable a as an integer or string.

                INSTALLING PYTHON

            Follow these steps to download and install the Python software:

            Step 1   Open the website http://www.python.org/downloads.
            Step 2   Click on the Download Python 3.8.3 button.























                                                     Downloading Python

            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.


                                                                   Introduction to Programming Python        83
   78   79   80   81   82   83   84   85   86   87   88