Page 20 - 2501_KVS_C-7
P. 20

Activity 2.1


                    1.    Write an algorithm to prepare a cup of tea.
                    2.    Draw a flowchart to display the area of a rectangle.

                    3.    Draw a flowchart to find whether the inputted number is greater than 5 or not.



                  2.2 PYTHON—PROGRAMMING LANGUAGE

                  2.2.1 Python Introduction

                  In the previous section of this chapter, we learnt about the tools and techniques used
                  to develop the structure of a program. These tools, like flowcharts and algorithms, are

                  essential to draw a layout of the solution to the problem. Once the process of designing is
                  completed, now it’s time to convert the structural design into programmatic code that a
                  computer can understand easily. This process is known as coding.

                  Coding  can be  done  in  any programming  language. We will  use Python as a programming
                  language to write code.

                  Python:  Python  is  an  open-source,  high-level  programming  language  which  has  a  simple
                  syntax similar to the English language. Python was created by Guido van Rossum, and first
                  released on February 20, 1991. The language name is not about snakes, but was inspired by
                  the British Comedy Troupe Monty Python’s Flying Circus. Guido Van Rossum is a big fan

                  of Monty Python’s Flying Circus.  Python is used by many big companies like NASA, Google,
                  Nokia, IBM, Netflix, Facebook and Yahoo Maps etc.

                  2.2.2 Python Features
                                                                                            Python is
                  Python  is Popular:  Python  is  a  popular                               Easy to
                  programming language  due to its simple                                  Learn and
                  syntax  and  wide  range  of  applications  in           Python is          Use

                  various fields.                                          Popular                         Python is
                                                                                                             Free
                  Python     is   Interpreted:  Python  is  an
                  interpreted     programming       language.    An                         Python

                  interpreter  is  a  converter  program  that              Python         Features
                  converts  a  high-level  language  into  machine       supports GUI                      Python is
                  language, one statement at a time.                     Programming                      Interpreted
                                                                                                           Language
                  Python is Free: Python is freely available to                            Python is
                  download, use, distribute and modify. Python                             Portable
                  is an open-source programming language.

                                                                                    Fig 2.3: Python Features

                18                         KVS DELHI REGION 2025
   15   16   17   18   19   20   21   22   23   24   25