Page 112 - ConceptGP_C8_Fb
P. 112

•     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.


                                                                                                 Opening Python
                        110   Premium Edition-VIII
   107   108   109   110   111   112   113   114   115   116   117